Class: Aws::CodeGuruReviewer::Types::AssociateRepositoryRequest

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

Overview

Note:

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

{
  repository: { # required
    code_commit: {
      name: "Name", # required
    },
    bitbucket: {
      name: "Name", # required
      connection_arn: "ConnectionArn", # required
      owner: "Owner", # required
    },
    git_hub_enterprise_server: {
      name: "Name", # required
      connection_arn: "ConnectionArn", # required
      owner: "Owner", # required
    },
    s3_bucket: {
      name: "Name", # required
      bucket_name: "S3BucketName", # required
    },
  },
  client_request_token: "ClientRequestToken",
  tags: {
    "TagKey" => "TagValue",
  },
  kms_key_details: {
    kms_key_id: "KMSKeyId",
    encryption_option: "AWS_OWNED_CMK", # accepts AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_request_tokenString

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


98
99
100
101
102
103
104
105
# File 'gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/types.rb', line 98

class AssociateRepositoryRequest < Struct.new(
  :repository,
  :client_request_token,
  :tags,
  :kms_key_details)
  SENSITIVE = []
  include Aws::Structure
end

#kms_key_detailsTypes::KMSKeyDetails

A KMSKeyDetails object that contains:

  • The encryption option for this repository association. It is either owned by Amazon Web Services Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).

  • The ID of the Amazon Web Services KMS key that is associated with this respository association.



98
99
100
101
102
103
104
105
# File 'gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/types.rb', line 98

class AssociateRepositoryRequest < Struct.new(
  :repository,
  :client_request_token,
  :tags,
  :kms_key_details)
  SENSITIVE = []
  include Aws::Structure
end

#repositoryTypes::Repository

The repository to associate.

Returns:



98
99
100
101
102
103
104
105
# File 'gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/types.rb', line 98

class AssociateRepositoryRequest < Struct.new(
  :repository,
  :client_request_token,
  :tags,
  :kms_key_details)
  SENSITIVE = []
  include Aws::Structure
end

#tagsHash<String,String>

An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

  • A tag key (for example, CostCenter, Environment, Project, or Secret). Tag keys are case sensitive.

  • An optional field known as a tag value (for example, 111122223333, Production, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.

Returns:

  • (Hash<String,String>)


98
99
100
101
102
103
104
105
# File 'gems/aws-sdk-codegurureviewer/lib/aws-sdk-codegurureviewer/types.rb', line 98

class AssociateRepositoryRequest < Struct.new(
  :repository,
  :client_request_token,
  :tags,
  :kms_key_details)
  SENSITIVE = []
  include Aws::Structure
end