def __init__(__self__, *, code: Optional[pulumi.Input[int]]=None, ttl: Optional[pulumi.Input[int]]=None):
    '\n        Specify CDN TTLs for response error codes.\n        :param pulumi.Input[int] code: The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once.\n        :param pulumi.Input[int] ttl: The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.\n        '
    if (code is not None):
        pulumi.set(__self__, 'code', code)
    if (ttl is not None):
        pulumi.set(__self__, 'ttl', ttl)
Specify CDN TTLs for response error codes.
:param pulumi.Input[int] code: The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once.
:param pulumi.Input[int] ttl: The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
def __init__(__self__, *, code: Optional[pulumi.Input[int]]=None, ttl: Optional[pulumi.Input[int]]=None):
    '\n        Specify CDN TTLs for response error codes.\n        :param pulumi.Input[int] code: The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once.\n        :param pulumi.Input[int] ttl: The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.\n        '
    if (code is not None):
        pulumi.set(__self__, 'code', code)
    if (ttl is not None):
        pulumi.set(__self__, 'ttl', ttl)