{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-openshift/json-schema/red-hat-openshift-aws-schema.json",
  "title": "AWS",
  "description": "_Amazon Web Services_ specific settings of a cluster.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-openshift-ocm-clusters-mgmt-openapi.yml#/components/schemas/AWS",
  "properties": {
    "kms_key_arn": {
      "description": "Customer Managed Key to encrypt EBS Volume",
      "type": "string"
    },
    "sts": {
      "description": "Contains the necessary attributes to support role-based authentication on AWS.",
      "$ref": "#/$defs/STS"
    },
    "access_key_id": {
      "description": "AWS access key identifier.",
      "type": "string"
    },
    "account_id": {
      "description": "AWS account identifier.",
      "type": "string"
    },
    "additional_allowed_principals": {
      "description": "Additional allowed principal ARNs to be added to the hosted control plane's VPC Endpoint Service.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "additional_compute_security_group_ids": {
      "description": "Additional AWS Security Groups to be added to default worker (compute) machine pool.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "additional_control_plane_security_group_ids": {
      "description": "Additional AWS Security Groups to be added to default control plane machine pool.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "additional_infra_security_group_ids": {
      "description": "Additional AWS Security Groups to be added to default infra machine pool.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "audit_log": {
      "description": "Audit log forwarding configuration",
      "$ref": "#/$defs/AuditLog"
    },
    "auto_node": {
      "description": "AWS specific configuration for AutoNode",
      "$ref": "#/$defs/AwsAutoNode"
    },
    "billing_account_id": {
      "description": "BillingAccountID is the account used for billing subscriptions purchased via the marketplace",
      "type": "string"
    },
    "ec2_metadata_http_tokens": {
      "description": "Which Ec2MetadataHttpTokens to use for metadata service interaction options for EC2 instances",
      "$ref": "#/$defs/Ec2MetadataHttpTokens"
    },
    "etcd_encryption": {
      "description": "Related etcd encryption configuration",
      "$ref": "#/$defs/AwsEtcdEncryption"
    },
    "hcp_internal_communication_hosted_zone_id": {
      "description": "ID of local private hosted zone for hypershift internal communication.",
      "type": "string"
    },
    "private_hosted_zone_id": {
      "description": "ID of private hosted zone.",
      "type": "string"
    },
    "private_hosted_zone_role_arn": {
      "description": "Role ARN for private hosted zone.",
      "type": "string"
    },
    "private_link": {
      "description": "Sets cluster to be inaccessible externally.",
      "type": "boolean"
    },
    "private_link_configuration": {
      "description": "Manages additional configuration for Private Links.",
      "$ref": "#/$defs/PrivateLinkClusterConfiguration"
    },
    "secret_access_key": {
      "description": "AWS secret access key.",
      "type": "string"
    },
    "subnet_ids": {
      "description": "The subnet ids to be used when installing the cluster.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tags": {
      "description": "Optional keys and values that the installer will add as tags to all AWS resources it creates",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "termination_handler_queue_url": {
      "description": "URL of the SQS queue used for graceful Spot instance interruption handling.\nWhen set, HyperShift deploys the AWS Node Termination Handler in the hosted\ncontrol plane. Queue must be in the same region as the cluster.",
      "type": "string"
    },
    "vpc_endpoint_role_arn": {
      "description": "Role ARN for VPC Endpoint Service cross account role.",
      "type": "string"
    },
    "zero_egress": {
      "description": "Zero egress configuration.",
      "$ref": "#/$defs/ZeroEgress"
    }
  },
  "$defs": {
    "AuditLog": {
      "description": "Contains the necessary attributes to support audit log forwarding",
      "properties": {
        "role_arn": {
          "description": "ARN of the CloudWatch audit log forwarding role",
          "type": "string"
        }
      }
    },
    "AwsAutoNode": {
      "description": "AWS provider configuration settings when using AutoNode on a ROSA HCP Cluster",
      "properties": {
        "role_arn": {
          "description": "The AWS ARN of the IAM Role that has the permissions required for the AutoNode\ncontroller.\nThe role must exist prior to enabling AutoNode on the cluster.",
          "type": "string"
        }
      }
    },
    "AwsEtcdEncryption": {
      "description": "Contains the necessary attributes to support etcd encryption for AWS based clusters.",
      "properties": {
        "kms_key_arn": {
          "description": "ARN of the KMS to be used for the etcd encryption",
          "type": "string"
        }
      }
    },
    "Ec2MetadataHttpTokens": {
      "description": "Which Ec2MetadataHttpTokens to use for metadata service interaction options for EC2 instances",
      "type": "string",
      "enum": [
        "optional",
        "required"
      ]
    },
    "InstanceIAMRoles": {
      "description": "Contains the necessary attributes to support role-based authentication on AWS.",
      "properties": {
        "master_role_arn": {
          "description": "The IAM role ARN that will be attached to master instances",
          "type": "string"
        },
        "worker_role_arn": {
          "description": "The IAM role ARN that will be attached to worker instances",
          "type": "string"
        }
      }
    },
    "OidcConfig": {
      "description": "Contains the necessary attributes to support oidc configuration hosting under Red Hat or registering a Customer's byo oidc config.",
      "properties": {
        "href": {
          "description": "HREF for the oidc config, filled in response.",
          "type": "string"
        },
        "id": {
          "description": "ID for the oidc config, filled in response.",
          "type": "string"
        },
        "creation_timestamp": {
          "description": "Creation timestamp, filled in response.",
          "type": "string",
          "format": "date-time"
        },
        "installer_role_arn": {
          "description": "ARN of the AWS role to assume when installing the cluster as to reveal the secret, supplied in request. It is only to be used in Unmanaged Oidc Config.",
          "type": "string"
        },
        "issuer_url": {
          "description": "Issuer URL, filled in response when Managed and supplied in Unmanaged.",
          "type": "string"
        },
        "last_update_timestamp": {
          "description": "Last update timestamp, filled when patching a valid attribute of this oidc config.",
          "type": "string",
          "format": "date-time"
        },
        "last_used_timestamp": {
          "description": "Last used timestamp, filled by the latest cluster that used this oidc config.",
          "type": "string",
          "format": "date-time"
        },
        "managed": {
          "description": "Indicates whether it is Managed or Unmanaged (Customer hosted).",
          "type": "boolean"
        },
        "organization_id": {
          "description": "Organization ID, filled in response respecting token provided.",
          "type": "string"
        },
        "reusable": {
          "description": "Indicates whether the Oidc Config can be reused.",
          "type": "boolean"
        },
        "secret_arn": {
          "description": "Secrets Manager ARN for the OIDC private key, supplied in request. It is only to be used in Unmanaged Oidc Config.",
          "type": "string"
        }
      }
    },
    "OperatorIAMRole": {
      "description": "Contains the necessary attributes to allow each operator to access the necessary AWS resources",
      "properties": {
        "id": {
          "description": "Randomly-generated ID to identify the operator role",
          "type": "string"
        },
        "name": {
          "description": "Name of the credentials secret used to access cloud resources",
          "type": "string"
        },
        "namespace": {
          "description": "Namespace where the credentials secret lives in the cluster",
          "type": "string"
        },
        "role_arn": {
          "description": "Role to assume when accessing AWS resources",
          "type": "string"
        },
        "service_account": {
          "description": "Service account name to use when authenticating",
          "type": "string"
        }
      }
    },
    "PrivateLinkClusterConfiguration": {
      "description": "Manages the configuration for the Private Links.",
      "properties": {
        "principals": {
          "description": "List of additional principals for the Private Link",
          "type": "array",
          "items": {
            "$ref": "#/$defs/PrivateLinkPrincipal"
          }
        }
      }
    },
    "PrivateLinkPrincipal": {
      "properties": {
        "kind": {
          "description": "Indicates the type of this object. Will be 'PrivateLinkPrincipal' if this is a complete object or 'PrivateLinkPrincipalLink' if it is just a link.",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier of the object.",
          "type": "string"
        },
        "href": {
          "description": "Self link.",
          "type": "string"
        },
        "principal": {
          "description": "ARN for a principal that is allowed for this Private Link.",
          "type": "string"
        }
      }
    },
    "STS": {
      "description": "Contains the necessary attributes to support role-based authentication on AWS.",
      "properties": {
        "oidc_endpoint_url": {
          "description": "URL of the location where OIDC configuration and keys are available",
          "type": "string"
        },
        "auto_mode": {
          "description": "Auto creation mode for cluster - OCM will create the operator roles and OIDC provider. false by default.",
          "type": "boolean"
        },
        "enabled": {
          "description": "If STS is enabled or disabled",
          "type": "boolean"
        },
        "external_id": {
          "description": "Optional unique identifier when assuming role in another account",
          "type": "string"
        },
        "instance_iam_roles": {
          "description": "Instance IAM roles to use for the instance profiles of the master and worker instances",
          "$ref": "#/$defs/InstanceIAMRoles"
        },
        "managed_policies": {
          "description": "If true, cluster account and operator roles have managed policies attached.",
          "type": "boolean"
        },
        "oidc_config": {
          "description": "Registered Oidc Config, if available holds information related to the oidc config.",
          "$ref": "#/$defs/OidcConfig"
        },
        "operator_iam_roles": {
          "description": "List of roles necessary to access the AWS resources of the various operators used during installation",
          "type": "array",
          "items": {
            "$ref": "#/$defs/OperatorIAMRole"
          }
        },
        "operator_role_prefix": {
          "description": "Optional user provided prefix for operator roles.",
          "type": "string"
        },
        "permission_boundary": {
          "description": "Optional user provided permission boundary.",
          "type": "string"
        },
        "role_arn": {
          "description": "ARN of the AWS role to assume when installing the cluster",
          "type": "string"
        },
        "support_role_arn": {
          "description": "ARN of the AWS role used by SREs to access the cluster AWS account in order to provide support",
          "type": "string"
        }
      }
    },
    "ZeroEgress": {
      "description": "Zero egress configuration.",
      "properties": {
        "enabled": {
          "description": "Indicates if zero egress is enabled for this cluster.",
          "type": "boolean"
        },
        "no_proxy_default_domains": {
          "description": "List of default no-proxy domains automatically added to the cluster's\nno-proxy configuration when zero egress is enabled.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}