Skip to content

Instantly share code, notes, and snippets.

@christopherhein
Created February 22, 2019 21:50
Show Gist options
  • Save christopherhein/514b3e41ba4e3909a08eb74677b38a3d to your computer and use it in GitHub Desktop.
Save christopherhein/514b3e41ba4e3909a08eb74677b38a3d to your computer and use it in GitHub Desktop.
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: targetgroups.elasticloadbalancingv2.awsoperator.io
spec:
group: elasticloadbalancingv2.awsoperator.io
versions:
- name: v1alpha1
served: true
storage: true
scope: Namespaced
names:
plural: targetgroups
singular: targetgroup
kind: TargetGroup
shortNames: []
categories:
- aws
- elasticloadbalancingv2
additionalPrinterColumns:
- name: Status
type: string
description: Status for the AWS CloudFormation stack.
JSONPath: ".status.reason"
- name: Message
type: string
description: Message accompanying it's current stack status.
JSONPath: ".status.message"
priority: 1
- name: Created At
type: date
description: When the resource was created
JSONPath: ".metadata.creationTimestamp"
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
spec:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html
type: object
required:
- port
- protocol
- vpcId
properties:
healthCheckIntervalSeconds:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthcheckintervalseconds
type: integer
format: int32
healthCheckPath:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthcheckpath
type: string
healthCheckPort:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthcheckport
type: string
healthCheckProtocol:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthcheckprotocol
type: string
healthCheckTimeoutSeconds:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthchecktimeoutseconds
type: integer
format: int32
healthyThresholdCount:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-healthythresholdcount
type: integer
format: int32
matcher:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-matcher
type: object
required:
- httpCode
properties:
httpCode:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-matcher.html#cfn-elasticloadbalancingv2-targetgroup-matcher-httpcode
type: string
name:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-name
type: string
port:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-port
type: integer
format: int32
protocol:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-protocol
type: string
tags:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-tags
type: array
items:
key:
description: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html#cfn-resource-tags-key
type: string
customAttributes:
template: Key
immutable: false
value:
description: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html#cfn-resource-tags-value
type: string
customAttributes:
template: Value
immutable: false
targetGroupAttributes:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes
type: array
items:
key:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattribute-key
type: string
customAttributes:
template: Key
immutable: false
value:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattribute-value
type: string
customAttributes:
template: Value
immutable: false
targetType:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targettype
type: string
targets:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targets
type: array
items:
availabilityZone:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html#cfn-elasticloadbalancingv2-targetgroup-targetdescription-availabilityzone
type: string
customAttributes:
template: AvailabilityZone
immutable: false
id:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html#cfn-elasticloadbalancingv2-targetgroup-targetdescription-id
type: string
customAttributes:
template: Id
immutable: false
port:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html#cfn-elasticloadbalancingv2-targetgroup-targetdescription-port
type: integer
format: int32
customAttributes:
template: Port
immutable: false
unhealthyThresholdCount:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-unhealthythresholdcount
type: integer
format: int32
vpc:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-vpcid
type: object
properties:
id:
type: string
vpcRef:
type: object
properties:
name:
type: string
namespace:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment