**To attach a service configuration to a resource group** Example 1: The following ``put-group-configuration`` example specifies that the resource group is to contain only Amazon EC2 capacity reservations for instances in the ``C5`` or ``M5`` families. :: aws resource-groups put-group-configuration \ --group MyTestGroup \ --configuration file://config.json Contents of ``config.json``:: [ { "Type": "AWS::EC2::HostManagement", "Parameters": [ { "Name": "allowed-host-families", "Values": [ "c5", "m5" ] }, { "Name": "any-host-based-license-configuration", "Values": [ "true" ] } ] }, { "Type": "AWS::ResourceGroups::Generic", "Parameters": [ { "Name": "allowed-resource-types", "Values": [ "AWS::EC2::Host" ] }, { "Name": "deletion-protection", "Values": [ "UNLESS_EMPTY" ] } ] } ] This command produces no output if successful. For more information, see `Service configurations for resource groups <https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html>`__ in the *Resource Groups API Reference Guide*.
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
create-group.rst | File | 2.41 KB | 0644 |
|
delete-group.rst | File | 554 B | 0644 |
|
get-group-query.rst | File | 561 B | 0644 |
|
get-group.rst | File | 536 B | 0644 |
|
get-tags.rst | File | 540 B | 0644 |
|
list-group-resources.rst | File | 804 B | 0644 |
|
list-groups.rst | File | 955 B | 0644 |
|
list-resource-groups.rst | File | 507 B | 0644 |
|
put-group-configuration.rst | File | 1.43 KB | 0644 |
|
search-resources.rst | File | 703 B | 0644 |
|
tag.rst | File | 735 B | 0644 |
|
untag.rst | File | 624 B | 0644 |
|
update-group-query.rst | File | 2.16 KB | 0644 |
|
update-group.rst | File | 721 B | 0644 |
|