

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# AWS Service Catalog menyebarkan referensi tindakan
<a name="action-reference-ServiceCatalog"></a>

Anda menggunakan AWS Service Catalog tindakan untuk menerapkan template menggunakan pipeline Anda. Ini adalah template sumber daya yang telah Anda buat di Service Catalog.

## Tipe tindakan
<a name="action-reference-ServiceCatalog-type"></a>
+ Kategori: `Deploy`
+ Pemilik: `AWS`
+ Penyedia: `ServiceCatalog`
+ Versi: `1`

## Parameter konfigurasi
<a name="action-reference-ServiceCatalog-config"></a>

**TemplateFilePath**  
Wajib: Ya  
Jalur file untuk template sumber daya Anda di lokasi sumber Anda.

**ProductVersionName**  
Wajib: Ya  
Versi produk di Service Catalog.

**ProductType**  
Wajib: Ya  
Jenis produk di Service Catalog.

**ProductId**  
Wajib: Ya  
ID produk di Service Catalog.

**ProductVersionDescription**  
Wajib: Tidak  
Deskripsi versi produk di Service Catalog.

## Artefak masukan
<a name="action-reference-ServiceCatalog-input"></a>
+ **Jumlah artefak:** `1`
+ **Deskripsi:** Ini adalah artefak masukan untuk tindakan Anda.

## Artefak keluaran
<a name="action-reference-ServiceCatalog-output"></a>
+ **Jumlah artefak:** `0` 
+ **Deskripsi:** Artefak keluaran tidak berlaku untuk jenis tindakan ini.

## Izin peran layanan: Tindakan Service Catalog
<a name="edit-role-servicecatalog"></a>

Untuk dukungan Service Catalog, tambahkan berikut ini ke pernyataan kebijakan Anda:

```
{
    "Effect": "Allow",
    "Action": [
        "servicecatalog:ListProvisioningArtifacts",
        "servicecatalog:CreateProvisioningArtifact",
        "servicecatalog:DescribeProvisioningArtifact",
        "servicecatalog:DeleteProvisioningArtifact",
        "servicecatalog:UpdateProduct"
    ],
    "Resource": "resource_ARN"
},
{
    "Effect": "Allow",
    "Action": [
        "cloudformation:ValidateTemplate"
    ],
    "Resource": "resource_ARN"
}
```

## Contoh konfigurasi tindakan berdasarkan jenis file konfigurasi
<a name="action-reference-ServiceCatalog-example"></a>

Contoh berikut menunjukkan konfigurasi yang valid untuk tindakan penerapan yang menggunakan Service Catalog, untuk pipeline yang dibuat di konsol tanpa file konfigurasi terpisah:

```
"configuration": {
  "TemplateFilePath": "S3_template.json",
  "ProductVersionName": "devops S3 v2",
  "ProductType": "CLOUD_FORMATION_TEMPLATE",
  "ProductVersionDescription": "Product version description",
  "ProductId": "prod-example123456"
}
```

Contoh berikut menunjukkan konfigurasi yang valid untuk tindakan penerapan yang menggunakan Service Catalog, untuk pipeline yang dibuat di konsol dengan file `sample_config.json` konfigurasi terpisah:

```
"configuration": {
  "ConfigurationFilePath": "sample_config.json",
  "ProductId": "prod-example123456"
}
```

### Contoh konfigurasi tindakan
<a name="action-reference-ServiceCatalog-example-default"></a>

------
#### [ YAML ]

```
Name: ActionName
ActionTypeId:
  Category: Deploy
  Owner: AWS
  Version: 1
  Provider: ServiceCatalog
OutputArtifacts:
- Name: myOutputArtifact
Configuration:
  TemplateFilePath: S3_template.json
  ProductVersionName: devops S3 v2
  ProductType: CLOUD_FORMATION_TEMPLATE
  ProductVersionDescription: Product version description
  ProductId: prod-example123456
```

------
#### [ JSON ]

```
{
    "Name": "ActionName",
    "ActionTypeId": {
        "Category": "Deploy",
        "Owner": "AWS",
        "Version": 1,
        "Provider": "ServiceCatalog"
    },
    "OutputArtifacts": [
        {
            "Name": "myOutputArtifact"
        }
    ],
    "Configuration": {
        "TemplateFilePath": "S3_template.json",
        "ProductVersionName": "devops S3 v2",
        "ProductType": "CLOUD_FORMATION_TEMPLATE",
        "ProductVersionDescription": "Product version description",
        "ProductId": "prod-example123456"
    }
}
```

------

## Lihat juga
<a name="action-reference-ServiceCatalog-links"></a>

Sumber daya terkait berikut dapat membantu Anda saat Anda bekerja dengan tindakan ini.
+ [Panduan Pengguna Service Catalog](https://docs.aws.amazon.com/servicecatalog/latest/userguide/) — Untuk informasi tentang sumber daya dan templat di Service Catalog, lihat *Panduan Pengguna Service Catalog*.
+ [Tutorial: Buat pipeline yang di-deploy ke Service Catalog](tutorials-S3-servicecatalog.md)— Tutorial tutorial ini menunjukkan cara membuat dan mengkonfigurasi pipeline untuk menyebarkan template produk Anda ke Service Catalog dan memberikan perubahan yang telah Anda buat di repositori sumber Anda.