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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-amplify/types.rb

Overview

Describes a custom rewrite or redirect rule.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#conditionString

The condition for a URL rewrite or redirect rule, such as a country code.

Returns:

  • (String)


1206
1207
1208
1209
1210
1211
1212
1213
# File 'lib/aws-sdk-amplify/types.rb', line 1206

class CustomRule < Struct.new(
  :source,
  :target,
  :status,
  :condition)
  SENSITIVE = []
  include Aws::Structure
end

#sourceString

The source pattern for a URL rewrite or redirect rule.

Returns:

  • (String)


1206
1207
1208
1209
1210
1211
1212
1213
# File 'lib/aws-sdk-amplify/types.rb', line 1206

class CustomRule < Struct.new(
  :source,
  :target,
  :status,
  :condition)
  SENSITIVE = []
  include Aws::Structure
end

#statusString

The status code for a URL rewrite or redirect rule.

200

: Represents a 200 rewrite rule.

301

: Represents a 301 (moved permanently) redirect rule. This and all

future requests should be directed to the target URL.

302

: Represents a 302 temporary redirect rule.

404

: Represents a 404 redirect rule.

404-200

: Represents a 404 rewrite rule.

Returns:

  • (String)


1206
1207
1208
1209
1210
1211
1212
1213
# File 'lib/aws-sdk-amplify/types.rb', line 1206

class CustomRule < Struct.new(
  :source,
  :target,
  :status,
  :condition)
  SENSITIVE = []
  include Aws::Structure
end

#targetString

The target pattern for a URL rewrite or redirect rule.

Returns:

  • (String)


1206
1207
1208
1209
1210
1211
1212
1213
# File 'lib/aws-sdk-amplify/types.rb', line 1206

class CustomRule < Struct.new(
  :source,
  :target,
  :status,
  :condition)
  SENSITIVE = []
  include Aws::Structure
end