WAFv2

6 resource kinds. Generated from the operator's CRD schemas.

API Group: aws.konfig.io/v1alpha1

IPSet # GA

IPSet is the Schema for managing WAFv2 IPSets.

kubectl get ipsets · example on GitHub

Example

# IPSet — WAFv2
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/wafv2.html#ipset
apiVersion: aws.konfig.io/v1alpha1
kind: IPSet
metadata:
  name: example-ipset
  namespace: default
spec:
  addresses:
  - example
  description: Managed by konfig-konector
  ipAddressVersion: IPV4
  name: example-ipset
  providerRef:
    name: example-ipset
    region: us-east-1
  scope: CLOUDFRONT
  tags:
    environment: dev
    team: platform

Spec

FieldTypeRequiredDescription
addressesarray<string>yesAddresses are the CIDR blocks to include in the IP set.
descriptionstring—Description is a human-readable description.
ipAddressVersionenumyesIPAddressVersion is IPV4 or IPV6. Allowed: IPV4, IPV6
namestringyesName is the name of the IP set.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
scopeenumyesScope is CLOUDFRONT or REGIONAL. Allowed: CLOUDFRONT, REGIONAL
tagsmap<string>—Tags are AWS resource tags to apply.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the IP set.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
idstring—ID is the IPSet ID.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
lockTokenstring—LockToken is the WAFv2 lock token required for updates/deletes.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.

WAFRegexPatternSet # GA

WAFRegexPatternSet is the Schema for managing WAFv2 regex pattern sets.

kubectl get wafregexpatternsets · example on GitHub

Example

# WAFRegexPatternSet — WAFv2
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/wafv2.html#wafregexpatternset
apiVersion: aws.konfig.io/v1alpha1
kind: WAFRegexPatternSet
metadata:
  name: example-wafregexpatternset
  namespace: default
spec:
  description: Managed by konfig-konector
  name: example-wafregexpatternset
  providerRef:
    name: example-wafregexpatternset
    region: us-east-1
  regularExpressionList:
  - example
  scope: CLOUDFRONT
  tags:
    environment: dev
    team: platform

Spec

FieldTypeRequiredDescription
descriptionstring—Description is a description of the set.
namestringyesName is the name of the regex pattern set.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
regularExpressionListarray<string>yesRegularExpressionList is the list of regex patterns.
scopeenumyesScope is CLOUDFRONT or REGIONAL. Allowed: CLOUDFRONT, REGIONAL
tagsmap<string>—Tags are metadata tags for the regex pattern set.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the regex pattern set.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
idstring—ID is the identifier of the regex pattern set.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
lockTokenstring—LockToken is required for updates and deletes.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.

WAFRuleGroup # GA

WAFRuleGroup is the Schema for managing WAFv2 rule groups.

kubectl get wafrulegroups · example on GitHub

Example

# WAFRuleGroup — WAFv2
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/wafv2.html#wafrulegroup
apiVersion: aws.konfig.io/v1alpha1
kind: WAFRuleGroup
metadata:
  name: example-wafrulegroup
  namespace: default
spec:
  capacity: 2
  description: Managed by konfig-konector
  name: example-wafrulegroup
  providerRef:
    name: example-wafrulegroup
    region: us-east-1
  scope: CLOUDFRONT
  tags:
    environment: dev
    team: platform

Spec

FieldTypeRequiredDescription
capacityintegeryesCapacity is the web ACL capacity units (WCUs) required for the rule group.
descriptionstring—Description is a description of the rule group.
namestringyesName is the name of the rule group.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
scopeenumyesScope is CLOUDFRONT or REGIONAL. Allowed: CLOUDFRONT, REGIONAL
tagsmap<string>—Tags are metadata tags for the rule group.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the rule group.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
idstring—ID is the identifier of the rule group.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
lockTokenstring—LockToken is required for updates and deletes.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.

WAFv2LoggingConfiguration # CLOUD CONTROL · AWS::WAFv2::LoggingConfiguration

WAFv2LoggingConfiguration manages AWS::WAFv2::LoggingConfiguration through the AWS Cloud Control API.

kubectl get wafv2loggingconfigurations · example on GitHub

Example

# WAFv2LoggingConfiguration — WAFv2
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/wafv2.html#wafv2loggingconfiguration
apiVersion: aws.konfig.io/v1alpha1
kind: WAFv2LoggingConfiguration
metadata:
  name: example-wafv2loggingconfiguration
  namespace: default
spec:
  logDestinationConfigs:
  - example
  loggingFilter:
    defaultBehavior: KEEP
    filters:
    - behavior: KEEP
      requirement: MEETS_ALL
  providerRef:
    name: example-wafv2loggingconfiguration
    region: us-east-1
  redactedFields:
  - singleHeader:
      name: example-singleheader
  resourceArn: arn:aws:iam::123456789012:role/example-role

Spec

FieldTypeRequiredDescription
logDestinationConfigsarray<string>yesThe Amazon Resource Names (ARNs) of the logging destinations that you want to associate with the web ACL.
loggingFilterobject—Filtering that specifies which web requests are kept in the logs and which are dropped.
loggingFilter.defaultBehaviorenumyesDefault handling for logs that don't match any of the specified filtering conditions. Allowed: KEEP, DROP
loggingFilter.filtersarray<object>yesThe filters that you want to apply to the logs.
loggingFilter.filters[].behaviorenumyesHow to handle logs that satisfy the filter's conditions and requirement. Allowed: KEEP, DROP
loggingFilter.filters[].conditionsarray<object>yesMatch conditions for the filter.
loggingFilter.filters[].conditions[].actionConditionobject—A single action condition.
loggingFilter.filters[].conditions[].actionCondition.actionenumyesLogic to apply to the filtering conditions. Allowed: ALLOW, BLOCK, COUNT, CAPTCHA, CHALLENGE, MONETIZE, EXCLUDED_AS_COUNT
loggingFilter.filters[].conditions[].labelNameConditionobject—A single label name condition.
loggingFilter.filters[].conditions[].labelNameCondition.labelNamestringyesThe label name that a log record must contain in order to meet the condition.
loggingFilter.filters[].requirementenumyesLogic to apply to the filtering conditions. Allowed: MEETS_ALL, MEETS_ANY
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
redactedFieldsarray<object>—The parts of the request that you want to keep out of the logs.
redactedFields[].methodobject—Inspect the HTTP method.
redactedFields[].queryStringobject—Inspect the query string.
redactedFields[].singleHeaderobject—Inspect a single header.
redactedFields[].singleHeader.namestringyesThe name of the query header to inspect.
redactedFields[].uriPathobject—Inspect the request URI path.
resourceArnstringyesThe Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
managedByFirewallManagerboolean—Indicates whether the logging configuration was created by AWS Firewall Manager, as part of an AWS WAF policy configuration.
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.

WAFv2WebACLAssociation # CLOUD CONTROL · AWS::WAFv2::WebACLAssociation

WAFv2WebACLAssociation manages AWS::WAFv2::WebACLAssociation through the AWS Cloud Control API.

kubectl get wafv2webaclassociations · example on GitHub

Example

# WAFv2WebACLAssociation — WAFv2
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/wafv2.html#wafv2webaclassociation
apiVersion: aws.konfig.io/v1alpha1
kind: WAFv2WebACLAssociation
metadata:
  name: example-wafv2webaclassociation
  namespace: default
spec:
  providerRef:
    name: example-wafv2webaclassociation
    region: us-east-1
  resourceArn: arn:aws:iam::123456789012:role/example-role
  webACLArn: arn:aws:iam::123456789012:role/example-role

Spec

FieldTypeRequiredDescription
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
resourceArnstringyesCreate-only in AWS: changing it requires replacing the resource.
webACLArnstringyesCreate-only in AWS: changing it requires replacing the resource.

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.

WebACL # GA

WebACL is the Schema for managing WAFv2 WebACLs.

kubectl get webacls · example on GitHub

Example

# WebACL — WAFv2
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/wafv2.html#webacl
apiVersion: aws.konfig.io/v1alpha1
kind: WebACL
metadata:
  name: example-webacl
  namespace: default
spec:
  defaultAction:
    allow: false
    block: false
  description: Managed by konfig-konector
  name: example-webacl
  providerRef:
    name: example-webacl
    region: us-east-1
  scope: CLOUDFRONT
  tags:
    environment: dev
    team: platform

Spec

FieldTypeRequiredDescription
defaultActionobjectyesDefaultAction is the action for requests that don't match any rule.
defaultAction.allowboolean—Allow allows requests that don't match any rule.
defaultAction.blockboolean—Block blocks requests that don't match any rule.
descriptionstring—Description is a human-readable description.
namestringyesName is the name of the WebACL.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
scopeenumyesScope is CLOUDFRONT or REGIONAL. Allowed: CLOUDFRONT, REGIONAL
tagsmap<string>—Tags are AWS resource tags to apply.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the WebACL.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
idstring—ID is the WebACL ID.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
lockTokenstring—LockToken is the WAFv2 lock token required for updates/deletes.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.