Amplify Toolbox
Preparing search index...
@aws-amplify/cli-core
NoticesManifestValidator
Class NoticesManifestValidator
Validates the notices manifest.
Index
Constructors
constructor
Methods
validate
Constructors
constructor
new
NoticesManifestValidator
(
props
?:
NoticesManifestValidatorProps
,
_fetch
?:
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
,
)
=>
Promise
<
Response
>
,
)
:
NoticesManifestValidator
Creates notices manifest validator.
Parameters
Optional
props
:
NoticesManifestValidatorProps
_fetch
:
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
=>
Promise
<
Response
>
= fetch
Returns
NoticesManifestValidator
Methods
validate
validate
(
noticesManifest
:
{
notices
:
{
details
:
string
;
frequency
?:
"once"
|
"command"
|
"deployment"
|
"daily"
;
id
:
string
;
link
?:
string
;
predicates
:
(
|
{
packageName
:
string
;
type
:
"packageVersion"
;
versionRange
:
string
;
}
|
{
type
:
"nodeVersion"
;
versionRange
:
string
}
|
{
osFamily
:
"linux"
|
"windows"
|
"macos"
;
type
:
"osFamily"
}
|
{
backendComponent
:
"function"
|
"data"
|
"auth"
|
"storage"
|
"ai"
;
type
:
"backendComponent"
;
}
|
{
command
:
"sandbox"
|
"pipeline-deploy"
|
"generate"
|
"configure"
;
type
:
"command"
;
}
|
{
errorMessage
:
string
;
type
:
"errorMessage"
}
)
[]
;
title
:
string
;
validFrom
?:
number
;
validTo
?:
number
;
}
[]
;
}
,
)
:
Promise
<
void
>
Parameters
noticesManifest
:
{
notices
:
{
details
:
string
;
frequency
?:
"once"
|
"command"
|
"deployment"
|
"daily"
;
id
:
string
;
link
?:
string
;
predicates
:
(
|
{
packageName
:
string
;
type
:
"packageVersion"
;
versionRange
:
string
;
}
|
{
type
:
"nodeVersion"
;
versionRange
:
string
}
|
{
osFamily
:
"linux"
|
"windows"
|
"macos"
;
type
:
"osFamily"
}
|
{
backendComponent
:
"function"
|
"data"
|
"auth"
|
"storage"
|
"ai"
;
type
:
"backendComponent"
;
}
|
{
command
:
"sandbox"
|
"pipeline-deploy"
|
"generate"
|
"configure"
;
type
:
"command"
;
}
|
{
errorMessage
:
string
;
type
:
"errorMessage"
}
)
[]
;
title
:
string
;
validFrom
?:
number
;
validTo
?:
number
;
}
[]
;
}
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
validate
Amplify Toolbox
Loading...
Validates the notices manifest.