Class: Aws::Amplify::Types::CustomRule
- Inherits:
-
Struct
- Object
- Struct
- Aws::Amplify::Types::CustomRule
- Defined in:
- gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb
Overview
Describes a custom rewrite or redirect rule.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#condition ⇒ String
The condition for a URL rewrite or redirect rule, such as a country code.
-
#source ⇒ String
The source pattern for a URL rewrite or redirect rule.
-
#status ⇒ String
The status code for a URL rewrite or redirect rule.
-
#target ⇒ String
The target pattern for a URL rewrite or redirect rule.
Instance Attribute Details
#condition ⇒ String
The condition for a URL rewrite or redirect rule, such as a country code.
1195 1196 1197 1198 1199 1200 1201 1202 |
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 1195 class CustomRule < Struct.new( :source, :target, :status, :condition) SENSITIVE = [] include Aws::Structure end |
#source ⇒ String
The source pattern for a URL rewrite or redirect rule.
1195 1196 1197 1198 1199 1200 1201 1202 |
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 1195 class CustomRule < Struct.new( :source, :target, :status, :condition) SENSITIVE = [] include Aws::Structure end |
#status ⇒ String
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.
1195 1196 1197 1198 1199 1200 1201 1202 |
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 1195 class CustomRule < Struct.new( :source, :target, :status, :condition) SENSITIVE = [] include Aws::Structure end |
#target ⇒ String
The target pattern for a URL rewrite or redirect rule.
1195 1196 1197 1198 1199 1200 1201 1202 |
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 1195 class CustomRule < Struct.new( :source, :target, :status, :condition) SENSITIVE = [] include Aws::Structure end |