# Copyright 2024 Google LLC
#
# 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.

apiVersion: blueprints.cloud.google.com/v1alpha1
kind: BlueprintMetadata
metadata:
  name: terraform-google-secret-manager-simple-secret-display
  annotations:
    config.kubernetes.io/local-config: "true"
spec:
  info:
    title: Terraform Google Secret Manager Secret Submodule
    source:
      repo: https://github.com/GoogleCloudPlatform/terraform-google-secret-manager.git
      sourceType: git
      dir: /modules/simple-secret
  ui:
    input:
      variables:
        automatic_replication:
          name: automatic_replication
          title: Automatic Replication
        labels:
          name: labels
          title: Labels
        name:
          name: name
          title: Name
          regexValidation: ^[A-Za-z0-9_-]{0,254}[A-Za-z0-9]$
          validation: A secret name can contain uppercase and lowercase letters, numerals, hyphens, and underscores. The maximum allowed length for a name is 255 characters.
        project_id:
          name: project_id
          title: Project Id
        rotation:
          name: rotation
          title: Rotation
        secret_data:
          name: secret_data
          title: Secret Data
        topics:
          name: topics
          title: Topics
        user_managed_replication:
          name: user_managed_replication
          title: User Managed Replication
