You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Amplify::Types::CustomRule

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CustomRule as input to an Aws::Client method, you can use a vanilla Hash:

{
  source: "Source", # required
  target: "Target", # required
  status: "Status",
  condition: "Condition",
}

Custom rewrite / redirect rule.

Instance Attribute Summary collapse

Instance Attribute Details

#conditionString

The condition for a URL rewrite or redirect rule, e.g. country code.

Returns:

  • (String)

    The condition for a URL rewrite or redirect rule, e.g.

#sourceString

The source pattern for a URL rewrite or redirect rule.

Returns:

  • (String)

    The source pattern for a URL rewrite or redirect rule.

#statusString

The status code for a URL rewrite or redirect rule.

Returns:

  • (String)

    The status code for a URL rewrite or redirect rule.

#targetString

The target pattern for a URL rewrite or redirect rule.

Returns:

  • (String)

    The target pattern for a URL rewrite or redirect rule.