func NewSubnetNatGatewayAssociation(ctx *pulumi.Context,
	name string, args *SubnetNatGatewayAssociationArgs, opts ...pulumi.ResourceOption) (*SubnetNatGatewayAssociation, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.NatGatewayId == nil {
		return nil, errors.New("invalid value for required argument 'NatGatewayId'")
	}
	if args.SubnetId == nil {
		return nil, errors.New("invalid value for required argument 'SubnetId'")
	}
	var resource SubnetNatGatewayAssociation
	err := ctx.RegisterResource("azure:network/subnetNatGatewayAssociation:SubnetNatGatewayAssociation", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewSubnetNatGatewayAssociation registers a new resource with the given unique name, arguments, and options.
NewSubnetNatGatewayAssociation registers a new resource with the given unique name, arguments, and options.
// NewSubnetNatGatewayAssociation registers a new resource with the given unique name arguments and options .
func NewSubnetNatGatewayAssociation(ctx *pulumi.Context,
	name string, args *SubnetNatGatewayAssociationArgs, opts ...pulumi.ResourceOption) (*SubnetNatGatewayAssociation, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.NatGatewayId == nil {
		return nil, errors.New("invalid value for required argument 'NatGatewayId'")
	}
	if args.SubnetId == nil {
		return nil, errors.New("invalid value for required argument 'SubnetId'")
	}
	var resource SubnetNatGatewayAssociation
	err := ctx.RegisterResource("azure:network/subnetNatGatewayAssociation:SubnetNatGatewayAssociation", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewSubnetNatGatewayAssociation ( ctx * pulumi . Context , name string , args * SubnetNatGatewayAssociationArgs , opts ... pulumi . ResourceOption ) ( * SubnetNatGatewayAssociation , error ) { if args == nil { return nil , errors . New ( " " ) } if args . NatGatewayId == nil { return nil , errors . New ( " " ) } if args . SubnetId == nil { return nil , errors . New ( " " ) } var resource SubnetNatGatewayAssociation err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewSubnetNatGatewayAssociation registers a new resource with the given unique name, arguments, and options.
NewSubnetNatGatewayAssociation registers a new resource with the given unique name arguments and options .