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

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