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

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",
}

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)


848
849
850
851
852
853
854
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 848

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

#sourceString

The source pattern for a URL rewrite or redirect rule.

Returns:

  • (String)


848
849
850
851
852
853
854
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 848

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

#statusString

The status code for a URL rewrite or redirect rule.

Returns:

  • (String)


848
849
850
851
852
853
854
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 848

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

#targetString

The target pattern for a URL rewrite or redirect rule.

Returns:

  • (String)


848
849
850
851
852
853
854
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 848

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