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

	if args.Rules == nil {
		return nil, errors.New("invalid value for required argument 'Rules'")
	}
	if args.StorageAccountId == nil {
		return nil, errors.New("invalid value for required argument 'StorageAccountId'")
	}
	if args.StorageContainerName == nil {
		return nil, errors.New("invalid value for required argument 'StorageContainerName'")
	}
	var resource BlobInventoryPolicy
	err := ctx.RegisterResource("azure:storage/blobInventoryPolicy:BlobInventoryPolicy", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewBlobInventoryPolicy registers a new resource with the given unique name, arguments, and options.
NewBlobInventoryPolicy registers a new resource with the given unique name, arguments, and options.
// NewBlobInventoryPolicy registers a new resource with the given unique name arguments and options .
func NewBlobInventoryPolicy(ctx *pulumi.Context,
	name string, args *BlobInventoryPolicyArgs, opts ...pulumi.ResourceOption) (*BlobInventoryPolicy, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Rules == nil {
		return nil, errors.New("invalid value for required argument 'Rules'")
	}
	if args.StorageAccountId == nil {
		return nil, errors.New("invalid value for required argument 'StorageAccountId'")
	}
	if args.StorageContainerName == nil {
		return nil, errors.New("invalid value for required argument 'StorageContainerName'")
	}
	var resource BlobInventoryPolicy
	err := ctx.RegisterResource("azure:storage/blobInventoryPolicy:BlobInventoryPolicy", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewBlobInventoryPolicy ( ctx * pulumi . Context , name string , args * BlobInventoryPolicyArgs , opts ... pulumi . ResourceOption ) ( * BlobInventoryPolicy , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Rules == nil { return nil , errors . New ( " " ) } if args . StorageAccountId == nil { return nil , errors . New ( " " ) } if args . StorageContainerName == nil { return nil , errors . New ( " " ) } var resource BlobInventoryPolicy err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewBlobInventoryPolicy registers a new resource with the given unique name, arguments, and options.
NewBlobInventoryPolicy registers a new resource with the given unique name arguments and options .