class Aws::CodeCommit::Resource

resource = Aws::CodeCommit::Resource.new(client: client)
client = Aws::CodeCommit::Client.new(region: ‘us-west-2’)
If you do not pass :client, a default client will be constructed.
You can supply a client object with custom configuration that will be used for all resource operations.
resource = Aws::CodeCommit::Resource.new(region: ‘us-west-2’)
To create a resource object:
This class provides a resource oriented interface for CodeCommit.

def client

Returns:
  • (Client) -
def client
  @client
end

def initialize(options = {})

Options Hash: (**options)
  • :client (Client) --

Parameters:
  • options ({}) --
def initialize(options = {})
  @client = options[:client] || Client.new(options)
end