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

	if args.Offer == nil {
		return nil, errors.New("invalid value for required argument 'Offer'")
	}
	if args.Plan == nil {
		return nil, errors.New("invalid value for required argument 'Plan'")
	}
	if args.Publisher == nil {
		return nil, errors.New("invalid value for required argument 'Publisher'")
	}
	var resource Agreement
	err := ctx.RegisterResource("azure:marketplace/agreement:Agreement", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewAgreement registers a new resource with the given unique name, arguments, and options.
NewAgreement registers a new resource with the given unique name, arguments, and options.
// NewAgreement registers a new resource with the given unique name arguments and options .
func NewAgreement(ctx *pulumi.Context,
	name string, args *AgreementArgs, opts ...pulumi.ResourceOption) (*Agreement, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Offer == nil {
		return nil, errors.New("invalid value for required argument 'Offer'")
	}
	if args.Plan == nil {
		return nil, errors.New("invalid value for required argument 'Plan'")
	}
	if args.Publisher == nil {
		return nil, errors.New("invalid value for required argument 'Publisher'")
	}
	var resource Agreement
	err := ctx.RegisterResource("azure:marketplace/agreement:Agreement", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewAgreement ( ctx * pulumi . Context , name string , args * AgreementArgs , opts ... pulumi . ResourceOption ) ( * Agreement , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Offer == nil { return nil , errors . New ( " " ) } if args . Plan == nil { return nil , errors . New ( " " ) } if args . Publisher == nil { return nil , errors . New ( " " ) } var resource Agreement err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewAgreement registers a new resource with the given unique name, arguments, and options.
NewAgreement registers a new resource with the given unique name arguments and options .