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

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

Overview

Note:

When making an API call, you may pass CustomRule data as a hash:

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

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)


1005
1006
1007
1008
1009
1010
1011
1012
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 1005

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)


1005
1006
1007
1008
1009
1010
1011
1012
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 1005

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

#statusString

The status code for a URL rewrite or redirect rule.

Returns:

  • (String)


1005
1006
1007
1008
1009
1010
1011
1012
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 1005

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)


1005
1006
1007
1008
1009
1010
1011
1012
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 1005

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