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

	if args.RecoveryVaultName == nil {
		return nil, errors.New("invalid value for required argument 'RecoveryVaultName'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.SourceNetworkId == nil {
		return nil, errors.New("invalid value for required argument 'SourceNetworkId'")
	}
	if args.SourceRecoveryFabricName == nil {
		return nil, errors.New("invalid value for required argument 'SourceRecoveryFabricName'")
	}
	if args.TargetNetworkId == nil {
		return nil, errors.New("invalid value for required argument 'TargetNetworkId'")
	}
	if args.TargetRecoveryFabricName == nil {
		return nil, errors.New("invalid value for required argument 'TargetRecoveryFabricName'")
	}
	var resource NetworkMapping
	err := ctx.RegisterResource("azure:siterecovery/networkMapping:NetworkMapping", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewNetworkMapping registers a new resource with the given unique name, arguments, and options.
NewNetworkMapping registers a new resource with the given unique name, arguments, and options.
// NewNetworkMapping registers a new resource with the given unique name arguments and options .
func NewNetworkMapping(ctx *pulumi.Context,
	name string, args *NetworkMappingArgs, opts ...pulumi.ResourceOption) (*NetworkMapping, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.RecoveryVaultName == nil {
		return nil, errors.New("invalid value for required argument 'RecoveryVaultName'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.SourceNetworkId == nil {
		return nil, errors.New("invalid value for required argument 'SourceNetworkId'")
	}
	if args.SourceRecoveryFabricName == nil {
		return nil, errors.New("invalid value for required argument 'SourceRecoveryFabricName'")
	}
	if args.TargetNetworkId == nil {
		return nil, errors.New("invalid value for required argument 'TargetNetworkId'")
	}
	if args.TargetRecoveryFabricName == nil {
		return nil, errors.New("invalid value for required argument 'TargetRecoveryFabricName'")
	}
	var resource NetworkMapping
	err := ctx.RegisterResource("azure:siterecovery/networkMapping:NetworkMapping", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewNetworkMapping ( ctx * pulumi . Context , name string , args * NetworkMappingArgs , opts ... pulumi . ResourceOption ) ( * NetworkMapping , error ) { if args == nil { return nil , errors . New ( " " ) } if args . RecoveryVaultName == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . SourceNetworkId == nil { return nil , errors . New ( " " ) } if args . SourceRecoveryFabricName == nil { return nil , errors . New ( " " ) } if args . TargetNetworkId == nil { return nil , errors . New ( " " ) } if args . TargetRecoveryFabricName == nil { return nil , errors . New ( " " ) } var resource NetworkMapping err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewNetworkMapping registers a new resource with the given unique name, arguments, and options.
NewNetworkMapping registers a new resource with the given unique name arguments and options .