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

	if args.BackupPolicyId == nil {
		return nil, errors.New("invalid value for required argument 'BackupPolicyId'")
	}
	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.SourceFileShareName == nil {
		return nil, errors.New("invalid value for required argument 'SourceFileShareName'")
	}
	if args.SourceStorageAccountId == nil {
		return nil, errors.New("invalid value for required argument 'SourceStorageAccountId'")
	}
	var resource ProtectedFileShare
	err := ctx.RegisterResource("azure:backup/protectedFileShare:ProtectedFileShare", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewProtectedFileShare registers a new resource with the given unique name, arguments, and options.
NewProtectedFileShare registers a new resource with the given unique name, arguments, and options.
// NewProtectedFileShare registers a new resource with the given unique name arguments and options .
func NewProtectedFileShare(ctx *pulumi.Context,
	name string, args *ProtectedFileShareArgs, opts ...pulumi.ResourceOption) (*ProtectedFileShare, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.BackupPolicyId == nil {
		return nil, errors.New("invalid value for required argument 'BackupPolicyId'")
	}
	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.SourceFileShareName == nil {
		return nil, errors.New("invalid value for required argument 'SourceFileShareName'")
	}
	if args.SourceStorageAccountId == nil {
		return nil, errors.New("invalid value for required argument 'SourceStorageAccountId'")
	}
	var resource ProtectedFileShare
	err := ctx.RegisterResource("azure:backup/protectedFileShare:ProtectedFileShare", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewProtectedFileShare ( ctx * pulumi . Context , name string , args * ProtectedFileShareArgs , opts ... pulumi . ResourceOption ) ( * ProtectedFileShare , error ) { if args == nil { return nil , errors . New ( " " ) } if args . BackupPolicyId == nil { return nil , errors . New ( " " ) } if args . RecoveryVaultName == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . SourceFileShareName == nil { return nil , errors . New ( " " ) } if args . SourceStorageAccountId == nil { return nil , errors . New ( " " ) } var resource ProtectedFileShare err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewProtectedFileShare registers a new resource with the given unique name, arguments, and options.
NewProtectedFileShare registers a new resource with the given unique name arguments and options .