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

	if args.KeyVaultId == nil {
		return nil, errors.New("invalid value for required argument 'KeyVaultId'")
	}
	if args.Value == nil {
		return nil, errors.New("invalid value for required argument 'Value'")
	}
	var resource Secret
	err := ctx.RegisterResource("azure:keyvault/secret:Secret", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewSecret registers a new resource with the given unique name, arguments, and options.
NewSecret registers a new resource with the given unique name, arguments, and options.
// NewSecret registers a new resource with the given unique name arguments and options .
func NewSecret(ctx *pulumi.Context,
	name string, args *SecretArgs, opts ...pulumi.ResourceOption) (*Secret, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.KeyVaultId == nil {
		return nil, errors.New("invalid value for required argument 'KeyVaultId'")
	}
	if args.Value == nil {
		return nil, errors.New("invalid value for required argument 'Value'")
	}
	var resource Secret
	err := ctx.RegisterResource("azure:keyvault/secret:Secret", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewSecret ( ctx * pulumi . Context , name string , args * SecretArgs , opts ... pulumi . ResourceOption ) ( * Secret , error ) { if args == nil { return nil , errors . New ( " " ) } if args . KeyVaultId == nil { return nil , errors . New ( " " ) } if args . Value == nil { return nil , errors . New ( " " ) } var resource Secret err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewSecret registers a new resource with the given unique name, arguments, and options.
NewSecret registers a new resource with the given unique name arguments and options .