// Code generated by smithy-go-codegen DO NOT EDIT.

package types_test

import (
	"fmt"
	"github.com/aws/aws-sdk-go-v2/service/inspector2/types"
)

func ExampleAggregationRequest_outputUsage() {
	var union types.AggregationRequest
	// type switches can be used to check the union value
	switch v := union.(type) {
	case *types.AggregationRequestMemberAccountAggregation:
		_ = v.Value // Value is types.AccountAggregation

	case *types.AggregationRequestMemberAmiAggregation:
		_ = v.Value // Value is types.AmiAggregation

	case *types.AggregationRequestMemberAwsEcrContainerAggregation:
		_ = v.Value // Value is types.AwsEcrContainerAggregation

	case *types.AggregationRequestMemberEc2InstanceAggregation:
		_ = v.Value // Value is types.Ec2InstanceAggregation

	case *types.AggregationRequestMemberFindingTypeAggregation:
		_ = v.Value // Value is types.FindingTypeAggregation

	case *types.AggregationRequestMemberImageLayerAggregation:
		_ = v.Value // Value is types.ImageLayerAggregation

	case *types.AggregationRequestMemberPackageAggregation:
		_ = v.Value // Value is types.PackageAggregation

	case *types.AggregationRequestMemberRepositoryAggregation:
		_ = v.Value // Value is types.RepositoryAggregation

	case *types.AggregationRequestMemberTitleAggregation:
		_ = v.Value // Value is types.TitleAggregation

	case *types.UnknownUnionMember:
		fmt.Println("unknown tag:", v.Tag)

	default:
		fmt.Println("union is nil or unknown type")

	}
}

var _ *types.AwsEcrContainerAggregation
var _ *types.TitleAggregation
var _ *types.ImageLayerAggregation
var _ *types.AmiAggregation
var _ *types.FindingTypeAggregation
var _ *types.AccountAggregation
var _ *types.Ec2InstanceAggregation
var _ *types.PackageAggregation
var _ *types.RepositoryAggregation

func ExampleAggregationResponse_outputUsage() {
	var union types.AggregationResponse
	// type switches can be used to check the union value
	switch v := union.(type) {
	case *types.AggregationResponseMemberAccountAggregation:
		_ = v.Value // Value is types.AccountAggregationResponse

	case *types.AggregationResponseMemberAmiAggregation:
		_ = v.Value // Value is types.AmiAggregationResponse

	case *types.AggregationResponseMemberAwsEcrContainerAggregation:
		_ = v.Value // Value is types.AwsEcrContainerAggregationResponse

	case *types.AggregationResponseMemberEc2InstanceAggregation:
		_ = v.Value // Value is types.Ec2InstanceAggregationResponse

	case *types.AggregationResponseMemberFindingTypeAggregation:
		_ = v.Value // Value is types.FindingTypeAggregationResponse

	case *types.AggregationResponseMemberImageLayerAggregation:
		_ = v.Value // Value is types.ImageLayerAggregationResponse

	case *types.AggregationResponseMemberPackageAggregation:
		_ = v.Value // Value is types.PackageAggregationResponse

	case *types.AggregationResponseMemberRepositoryAggregation:
		_ = v.Value // Value is types.RepositoryAggregationResponse

	case *types.AggregationResponseMemberTitleAggregation:
		_ = v.Value // Value is types.TitleAggregationResponse

	case *types.UnknownUnionMember:
		fmt.Println("unknown tag:", v.Tag)

	default:
		fmt.Println("union is nil or unknown type")

	}
}

var _ *types.AccountAggregationResponse
var _ *types.AmiAggregationResponse
var _ *types.PackageAggregationResponse
var _ *types.RepositoryAggregationResponse
var _ *types.ImageLayerAggregationResponse
var _ *types.TitleAggregationResponse
var _ *types.FindingTypeAggregationResponse
var _ *types.AwsEcrContainerAggregationResponse
var _ *types.Ec2InstanceAggregationResponse
