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

	if args.CertificatePolicy == nil {
		return nil, errors.New("invalid value for required argument 'CertificatePolicy'")
	}
	if args.KeyVaultId == nil {
		return nil, errors.New("invalid value for required argument 'KeyVaultId'")
	}
	aliases := pulumi.Aliases([]pulumi.Alias{
		{
			Type: pulumi.String("azure:keyvault/certifiate:Certifiate"),
		},
	})
	opts = append(opts, aliases)
	var resource Certificate
	err := ctx.RegisterResource("azure:keyvault/certificate:Certificate", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewCertificate registers a new resource with the given unique name, arguments, and options.
NewCertificate registers a new resource with the given unique name, arguments, and options.
// NewCertificate registers a new resource with the given unique name arguments and options .
func NewCertificate(ctx *pulumi.Context,
	name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.CertificatePolicy == nil {
		return nil, errors.New("invalid value for required argument 'CertificatePolicy'")
	}
	if args.KeyVaultId == nil {
		return nil, errors.New("invalid value for required argument 'KeyVaultId'")
	}
	aliases := pulumi.Aliases([]pulumi.Alias{
		{
			Type: pulumi.String("azure:keyvault/certifiate:Certifiate"),
		},
	})
	opts = append(opts, aliases)
	var resource Certificate
	err := ctx.RegisterResource("azure:keyvault/certificate:Certificate", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewCertificate ( ctx * pulumi . Context , name string , args * CertificateArgs , opts ... pulumi . ResourceOption ) ( * Certificate , error ) { if args == nil { return nil , errors . New ( " " ) } if args . CertificatePolicy == nil { return nil , errors . New ( " " ) } if args . KeyVaultId == nil { return nil , errors . New ( " " ) } aliases := pulumi . Aliases ( [ ] pulumi . Alias { { Type : pulumi . String ( " " ) , } , } ) opts = append ( opts , aliases ) var resource Certificate err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewCertificate registers a new resource with the given unique name, arguments, and options.
NewCertificate registers a new resource with the given unique name arguments and options .