assertions

package
v1.110.1-devpreview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match_AbsentProperty

func Match_AbsentProperty() *string

Use this matcher in the place of a field's value, if the field must not be present. Experimental.

func NewMatch_Override

func NewMatch_Override(m Match)

Experimental.

Types

type Match

type Match interface {
}

Partial and special matching during template assertions. Experimental.

func NewMatch

func NewMatch() Match

Experimental.

type TemplateAssertions

type TemplateAssertions interface {
	HasResourceDefinition(type_ *string, props interface{})
	HasResourceProperties(type_ *string, props interface{})
	ResourceCountIs(type_ *string, count *float64)
	TemplateMatches(expected *map[string]interface{})
}

Suite of assertions that can be run on a CDK stack.

Typically used, as part of unit tests, to validate that the rendered CloudFormation template has expected resources and properties. Experimental.

func TemplateAssertions_FromStack

func TemplateAssertions_FromStack(stack awscdk.Stack) TemplateAssertions

Base your assertions on the CloudFormation template synthesized by a CDK `Stack`. Experimental.

func TemplateAssertions_FromString

func TemplateAssertions_FromString(template *string) TemplateAssertions

Base your assertions from an existing CloudFormation template formatted as a string. Experimental.

func TemplateAssertions_FromTemplate

func TemplateAssertions_FromTemplate(template *map[string]interface{}) TemplateAssertions

Base your assertions from an existing CloudFormation template formatted as a nested set of records. Experimental.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL