as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
アクセスいただきありがとうございます。こちらのページは現在英語のみのご用意となっております。順次日本語化を進めてまいりますので、ご理解のほどよろしくお願いいたします。

ContentRatingLevelTmGlue

Represents the rating level within the ratings scale for a specific ratings system.

Implements

Constructors

new ContentRatingLevelTmGlue()

new ContentRatingLevelTmGlue(ratingsSystem, rating): ContentRatingLevelTmGlue

Parameters

ratingsSystem

string

rating

string

Returns

ContentRatingLevelTmGlue

Properties

rating

readonly rating: string

Returns the unique identifying key for a rating that is a valid rating within the ratings system returned by ratingsSystem.

Todo

  • point to documentation for ratings scales of supported ratings systems

Implementation of

IContentRatingLevel.rating


ratingsSystem

readonly ratingsSystem: string

Returns the unique identifying key for a "ratings system", an specific industry ratings standard.

Todo

  • point to documentation for supported ratings systems

Implementation of

IContentRatingLevel.ratingsSystem

Methods

isLessOrEquallyRestrictiveThan()

isLessOrEquallyRestrictiveThan(other): Promise<boolean>

Compares two ratings levels to determine whether one is less-or-equally as restrictive as another. Note, this is a partial function over the domain of IContentRatingLevel objects; only rating levels of the same ratings system may be compared.

Parameters

other

IContentRatingLevel

Returns

Promise<boolean>

true if this object is less restrictive or equally restrictive to other else false.

Throws

NoncomparableRatingsError when attempting to compare ratings levels from different ratings systems.

Example

Given a={us_mpaa, G} and b={us_mpaa, PG-13}:
- `a->isLessOrEquallyRestrictiveThan(b) => true`
- `b->isLessOrEquallyRestrictiveThan(a) => false`
- `a->isLessOrEquallyRestrictiveThan(a) => true`

Given c={us_tv, TV-Y}:
- `a->isLessOrEquallyRestrictiveThan(c) => raises NoncomparableRatingsError`
- `c->isLessOrEquallyRestrictiveThan(a) => raises NoncomparableRatingsError`

Implementation of

IContentRatingLevel.isLessOrEquallyRestrictiveThan


Last updated: Oct 02, 2025