diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 465ec35312f8..3109bdcd3540 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -474,6 +474,7 @@ com.azure.resourcemanager:azure-resourcemanager-redhatopenshift;1.0.0-beta.1;1.0
com.azure.resourcemanager:azure-resourcemanager-fabric;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-trustedsigning;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-awsconnector;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1
com.azure.tools:azure-sdk-build-tool;1.0.0;1.1.0-beta.1
io.clientcore:clientcore-parent;1.0.0-beta.1;1.0.0-beta.1
diff --git a/pom.xml b/pom.xml
index 33109fb1c4a9..eb473dc03a82 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,6 +28,7 @@
sdk/automanage
sdk/automation
sdk/avs
+ sdk/awsconnector
sdk/azureadexternalidentities
sdk/azurearcdata
sdk/azurestack
diff --git a/sdk/awsconnector/azure-resourcemanager-awsconnector/CHANGELOG.md b/sdk/awsconnector/azure-resourcemanager-awsconnector/CHANGELOG.md
new file mode 100644
index 000000000000..d380b3bcd051
--- /dev/null
+++ b/sdk/awsconnector/azure-resourcemanager-awsconnector/CHANGELOG.md
@@ -0,0 +1,8 @@
+# Release History
+
+## 1.0.0-beta.1 (2024-10-09)
+
+- Azure Resource Manager awsconnector client library for Java. This package contains Microsoft Azure SDK for awsconnector Management SDK. Microsoft.AwsConnector Resource Provider management API. Package tag package-2024-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+### Features Added
+
+- Initial release for the azure-resourcemanager-awsconnector Java SDK.
diff --git a/sdk/awsconnector/azure-resourcemanager-awsconnector/README.md b/sdk/awsconnector/azure-resourcemanager-awsconnector/README.md
new file mode 100644
index 000000000000..ad6480acd570
--- /dev/null
+++ b/sdk/awsconnector/azure-resourcemanager-awsconnector/README.md
@@ -0,0 +1,104 @@
+# Azure Resource Manager awsconnector client library for Java
+
+Azure Resource Manager awsconnector client library for Java.
+
+This package contains Microsoft Azure SDK for awsconnector Management SDK. Microsoft.AwsConnector Resource Provider management API. Package tag package-2024-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-awsconnector;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-awsconnector
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
+
+### Authentication
+
+Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
+
+Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
+
+Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+AwsconnectorManager manager = AwsconnectorManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/awsconnector/azure-resourcemanager-awsconnector/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide][cg].
+
+This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments.
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
+[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
+
+
diff --git a/sdk/awsconnector/azure-resourcemanager-awsconnector/SAMPLE.md b/sdk/awsconnector/azure-resourcemanager-awsconnector/SAMPLE.md
new file mode 100644
index 000000000000..8557385edce4
--- /dev/null
+++ b/sdk/awsconnector/azure-resourcemanager-awsconnector/SAMPLE.md
@@ -0,0 +1,27403 @@
+# Code snippets and samples
+
+
+## AccessAnalyzerAnalyzers
+
+- [CreateOrReplace](#accessanalyzeranalyzers_createorreplace)
+- [Delete](#accessanalyzeranalyzers_delete)
+- [GetByResourceGroup](#accessanalyzeranalyzers_getbyresourcegroup)
+- [List](#accessanalyzeranalyzers_list)
+- [ListByResourceGroup](#accessanalyzeranalyzers_listbyresourcegroup)
+- [Update](#accessanalyzeranalyzers_update)
+
+## AcmCertificateSummaries
+
+- [CreateOrReplace](#acmcertificatesummaries_createorreplace)
+- [Delete](#acmcertificatesummaries_delete)
+- [GetByResourceGroup](#acmcertificatesummaries_getbyresourcegroup)
+- [List](#acmcertificatesummaries_list)
+- [ListByResourceGroup](#acmcertificatesummaries_listbyresourcegroup)
+- [Update](#acmcertificatesummaries_update)
+
+## ApiGatewayRestApis
+
+- [CreateOrReplace](#apigatewayrestapis_createorreplace)
+- [Delete](#apigatewayrestapis_delete)
+- [GetByResourceGroup](#apigatewayrestapis_getbyresourcegroup)
+- [List](#apigatewayrestapis_list)
+- [ListByResourceGroup](#apigatewayrestapis_listbyresourcegroup)
+- [Update](#apigatewayrestapis_update)
+
+## ApiGatewayStages
+
+- [CreateOrReplace](#apigatewaystages_createorreplace)
+- [Delete](#apigatewaystages_delete)
+- [GetByResourceGroup](#apigatewaystages_getbyresourcegroup)
+- [List](#apigatewaystages_list)
+- [ListByResourceGroup](#apigatewaystages_listbyresourcegroup)
+- [Update](#apigatewaystages_update)
+
+## AppSyncGraphqlApis
+
+- [CreateOrReplace](#appsyncgraphqlapis_createorreplace)
+- [Delete](#appsyncgraphqlapis_delete)
+- [GetByResourceGroup](#appsyncgraphqlapis_getbyresourcegroup)
+- [List](#appsyncgraphqlapis_list)
+- [ListByResourceGroup](#appsyncgraphqlapis_listbyresourcegroup)
+- [Update](#appsyncgraphqlapis_update)
+
+## AutoScalingAutoScalingGroups
+
+- [CreateOrReplace](#autoscalingautoscalinggroups_createorreplace)
+- [Delete](#autoscalingautoscalinggroups_delete)
+- [GetByResourceGroup](#autoscalingautoscalinggroups_getbyresourcegroup)
+- [List](#autoscalingautoscalinggroups_list)
+- [ListByResourceGroup](#autoscalingautoscalinggroups_listbyresourcegroup)
+- [Update](#autoscalingautoscalinggroups_update)
+
+## CloudFormationStackSets
+
+- [CreateOrReplace](#cloudformationstacksets_createorreplace)
+- [Delete](#cloudformationstacksets_delete)
+- [GetByResourceGroup](#cloudformationstacksets_getbyresourcegroup)
+- [List](#cloudformationstacksets_list)
+- [ListByResourceGroup](#cloudformationstacksets_listbyresourcegroup)
+- [Update](#cloudformationstacksets_update)
+
+## CloudFormationStacks
+
+- [CreateOrReplace](#cloudformationstacks_createorreplace)
+- [Delete](#cloudformationstacks_delete)
+- [GetByResourceGroup](#cloudformationstacks_getbyresourcegroup)
+- [List](#cloudformationstacks_list)
+- [ListByResourceGroup](#cloudformationstacks_listbyresourcegroup)
+- [Update](#cloudformationstacks_update)
+
+## CloudFrontDistributions
+
+- [CreateOrReplace](#cloudfrontdistributions_createorreplace)
+- [Delete](#cloudfrontdistributions_delete)
+- [GetByResourceGroup](#cloudfrontdistributions_getbyresourcegroup)
+- [List](#cloudfrontdistributions_list)
+- [ListByResourceGroup](#cloudfrontdistributions_listbyresourcegroup)
+- [Update](#cloudfrontdistributions_update)
+
+## CloudTrailTrails
+
+- [CreateOrReplace](#cloudtrailtrails_createorreplace)
+- [Delete](#cloudtrailtrails_delete)
+- [GetByResourceGroup](#cloudtrailtrails_getbyresourcegroup)
+- [List](#cloudtrailtrails_list)
+- [ListByResourceGroup](#cloudtrailtrails_listbyresourcegroup)
+- [Update](#cloudtrailtrails_update)
+
+## CloudWatchAlarms
+
+- [CreateOrReplace](#cloudwatchalarms_createorreplace)
+- [Delete](#cloudwatchalarms_delete)
+- [GetByResourceGroup](#cloudwatchalarms_getbyresourcegroup)
+- [List](#cloudwatchalarms_list)
+- [ListByResourceGroup](#cloudwatchalarms_listbyresourcegroup)
+- [Update](#cloudwatchalarms_update)
+
+## CodeBuildProjects
+
+- [CreateOrReplace](#codebuildprojects_createorreplace)
+- [Delete](#codebuildprojects_delete)
+- [GetByResourceGroup](#codebuildprojects_getbyresourcegroup)
+- [List](#codebuildprojects_list)
+- [ListByResourceGroup](#codebuildprojects_listbyresourcegroup)
+- [Update](#codebuildprojects_update)
+
+## CodeBuildSourceCredentialsInfos
+
+- [CreateOrReplace](#codebuildsourcecredentialsinfos_createorreplace)
+- [Delete](#codebuildsourcecredentialsinfos_delete)
+- [GetByResourceGroup](#codebuildsourcecredentialsinfos_getbyresourcegroup)
+- [List](#codebuildsourcecredentialsinfos_list)
+- [ListByResourceGroup](#codebuildsourcecredentialsinfos_listbyresourcegroup)
+- [Update](#codebuildsourcecredentialsinfos_update)
+
+## ConfigServiceConfigurationRecorderStatuses
+
+- [CreateOrReplace](#configserviceconfigurationrecorderstatuses_createorreplace)
+- [Delete](#configserviceconfigurationrecorderstatuses_delete)
+- [GetByResourceGroup](#configserviceconfigurationrecorderstatuses_getbyresourcegroup)
+- [List](#configserviceconfigurationrecorderstatuses_list)
+- [ListByResourceGroup](#configserviceconfigurationrecorderstatuses_listbyresourcegroup)
+- [Update](#configserviceconfigurationrecorderstatuses_update)
+
+## ConfigServiceConfigurationRecorders
+
+- [CreateOrReplace](#configserviceconfigurationrecorders_createorreplace)
+- [Delete](#configserviceconfigurationrecorders_delete)
+- [GetByResourceGroup](#configserviceconfigurationrecorders_getbyresourcegroup)
+- [List](#configserviceconfigurationrecorders_list)
+- [ListByResourceGroup](#configserviceconfigurationrecorders_listbyresourcegroup)
+- [Update](#configserviceconfigurationrecorders_update)
+
+## ConfigServiceDeliveryChannels
+
+- [CreateOrReplace](#configservicedeliverychannels_createorreplace)
+- [Delete](#configservicedeliverychannels_delete)
+- [GetByResourceGroup](#configservicedeliverychannels_getbyresourcegroup)
+- [List](#configservicedeliverychannels_list)
+- [ListByResourceGroup](#configservicedeliverychannels_listbyresourcegroup)
+- [Update](#configservicedeliverychannels_update)
+
+## DatabaseMigrationServiceReplicationInstances
+
+- [CreateOrReplace](#databasemigrationservicereplicationinstances_createorreplace)
+- [Delete](#databasemigrationservicereplicationinstances_delete)
+- [GetByResourceGroup](#databasemigrationservicereplicationinstances_getbyresourcegroup)
+- [List](#databasemigrationservicereplicationinstances_list)
+- [ListByResourceGroup](#databasemigrationservicereplicationinstances_listbyresourcegroup)
+- [Update](#databasemigrationservicereplicationinstances_update)
+
+## DaxClusters
+
+- [CreateOrReplace](#daxclusters_createorreplace)
+- [Delete](#daxclusters_delete)
+- [GetByResourceGroup](#daxclusters_getbyresourcegroup)
+- [List](#daxclusters_list)
+- [ListByResourceGroup](#daxclusters_listbyresourcegroup)
+- [Update](#daxclusters_update)
+
+## DynamoDbContinuousBackupsDescriptions
+
+- [CreateOrReplace](#dynamodbcontinuousbackupsdescriptions_createorreplace)
+- [Delete](#dynamodbcontinuousbackupsdescriptions_delete)
+- [GetByResourceGroup](#dynamodbcontinuousbackupsdescriptions_getbyresourcegroup)
+- [List](#dynamodbcontinuousbackupsdescriptions_list)
+- [ListByResourceGroup](#dynamodbcontinuousbackupsdescriptions_listbyresourcegroup)
+- [Update](#dynamodbcontinuousbackupsdescriptions_update)
+
+## DynamoDbTables
+
+- [CreateOrReplace](#dynamodbtables_createorreplace)
+- [Delete](#dynamodbtables_delete)
+- [GetByResourceGroup](#dynamodbtables_getbyresourcegroup)
+- [List](#dynamodbtables_list)
+- [ListByResourceGroup](#dynamodbtables_listbyresourcegroup)
+- [Update](#dynamodbtables_update)
+
+## Ec2AccountAttributes
+
+- [CreateOrReplace](#ec2accountattributes_createorreplace)
+- [Delete](#ec2accountattributes_delete)
+- [GetByResourceGroup](#ec2accountattributes_getbyresourcegroup)
+- [List](#ec2accountattributes_list)
+- [ListByResourceGroup](#ec2accountattributes_listbyresourcegroup)
+- [Update](#ec2accountattributes_update)
+
+## Ec2Addresses
+
+- [CreateOrReplace](#ec2addresses_createorreplace)
+- [Delete](#ec2addresses_delete)
+- [GetByResourceGroup](#ec2addresses_getbyresourcegroup)
+- [List](#ec2addresses_list)
+- [ListByResourceGroup](#ec2addresses_listbyresourcegroup)
+- [Update](#ec2addresses_update)
+
+## Ec2FlowLogs
+
+- [CreateOrReplace](#ec2flowlogs_createorreplace)
+- [Delete](#ec2flowlogs_delete)
+- [GetByResourceGroup](#ec2flowlogs_getbyresourcegroup)
+- [List](#ec2flowlogs_list)
+- [ListByResourceGroup](#ec2flowlogs_listbyresourcegroup)
+- [Update](#ec2flowlogs_update)
+
+## Ec2Images
+
+- [CreateOrReplace](#ec2images_createorreplace)
+- [Delete](#ec2images_delete)
+- [GetByResourceGroup](#ec2images_getbyresourcegroup)
+- [List](#ec2images_list)
+- [ListByResourceGroup](#ec2images_listbyresourcegroup)
+- [Update](#ec2images_update)
+
+## Ec2InstanceStatuses
+
+- [CreateOrReplace](#ec2instancestatuses_createorreplace)
+- [Delete](#ec2instancestatuses_delete)
+- [GetByResourceGroup](#ec2instancestatuses_getbyresourcegroup)
+- [List](#ec2instancestatuses_list)
+- [ListByResourceGroup](#ec2instancestatuses_listbyresourcegroup)
+- [Update](#ec2instancestatuses_update)
+
+## Ec2Instances
+
+- [CreateOrReplace](#ec2instances_createorreplace)
+- [Delete](#ec2instances_delete)
+- [Get](#ec2instances_get)
+- [List](#ec2instances_list)
+- [Start](#ec2instances_start)
+- [Stop](#ec2instances_stop)
+
+## Ec2Ipams
+
+- [CreateOrReplace](#ec2ipams_createorreplace)
+- [Delete](#ec2ipams_delete)
+- [GetByResourceGroup](#ec2ipams_getbyresourcegroup)
+- [List](#ec2ipams_list)
+- [ListByResourceGroup](#ec2ipams_listbyresourcegroup)
+- [Update](#ec2ipams_update)
+
+## Ec2KeyPairs
+
+- [CreateOrReplace](#ec2keypairs_createorreplace)
+- [Delete](#ec2keypairs_delete)
+- [GetByResourceGroup](#ec2keypairs_getbyresourcegroup)
+- [List](#ec2keypairs_list)
+- [ListByResourceGroup](#ec2keypairs_listbyresourcegroup)
+- [Update](#ec2keypairs_update)
+
+## Ec2NetworkAcls
+
+- [CreateOrReplace](#ec2networkacls_createorreplace)
+- [Delete](#ec2networkacls_delete)
+- [GetByResourceGroup](#ec2networkacls_getbyresourcegroup)
+- [List](#ec2networkacls_list)
+- [ListByResourceGroup](#ec2networkacls_listbyresourcegroup)
+- [Update](#ec2networkacls_update)
+
+## Ec2NetworkInterfaces
+
+- [CreateOrReplace](#ec2networkinterfaces_createorreplace)
+- [Delete](#ec2networkinterfaces_delete)
+- [GetByResourceGroup](#ec2networkinterfaces_getbyresourcegroup)
+- [List](#ec2networkinterfaces_list)
+- [ListByResourceGroup](#ec2networkinterfaces_listbyresourcegroup)
+- [Update](#ec2networkinterfaces_update)
+
+## Ec2RouteTables
+
+- [CreateOrReplace](#ec2routetables_createorreplace)
+- [Delete](#ec2routetables_delete)
+- [GetByResourceGroup](#ec2routetables_getbyresourcegroup)
+- [List](#ec2routetables_list)
+- [ListByResourceGroup](#ec2routetables_listbyresourcegroup)
+- [Update](#ec2routetables_update)
+
+## Ec2SecurityGroups
+
+- [CreateOrReplace](#ec2securitygroups_createorreplace)
+- [Delete](#ec2securitygroups_delete)
+- [GetByResourceGroup](#ec2securitygroups_getbyresourcegroup)
+- [List](#ec2securitygroups_list)
+- [ListByResourceGroup](#ec2securitygroups_listbyresourcegroup)
+- [Update](#ec2securitygroups_update)
+
+## Ec2Snapshots
+
+- [CreateOrReplace](#ec2snapshots_createorreplace)
+- [Delete](#ec2snapshots_delete)
+- [GetByResourceGroup](#ec2snapshots_getbyresourcegroup)
+- [List](#ec2snapshots_list)
+- [ListByResourceGroup](#ec2snapshots_listbyresourcegroup)
+- [Update](#ec2snapshots_update)
+
+## Ec2Subnets
+
+- [CreateOrReplace](#ec2subnets_createorreplace)
+- [Delete](#ec2subnets_delete)
+- [GetByResourceGroup](#ec2subnets_getbyresourcegroup)
+- [List](#ec2subnets_list)
+- [ListByResourceGroup](#ec2subnets_listbyresourcegroup)
+- [Update](#ec2subnets_update)
+
+## Ec2Volumes
+
+- [CreateOrReplace](#ec2volumes_createorreplace)
+- [Delete](#ec2volumes_delete)
+- [GetByResourceGroup](#ec2volumes_getbyresourcegroup)
+- [List](#ec2volumes_list)
+- [ListByResourceGroup](#ec2volumes_listbyresourcegroup)
+- [Update](#ec2volumes_update)
+
+## Ec2VpcEndpoints
+
+- [CreateOrReplace](#ec2vpcendpoints_createorreplace)
+- [Delete](#ec2vpcendpoints_delete)
+- [GetByResourceGroup](#ec2vpcendpoints_getbyresourcegroup)
+- [List](#ec2vpcendpoints_list)
+- [ListByResourceGroup](#ec2vpcendpoints_listbyresourcegroup)
+- [Update](#ec2vpcendpoints_update)
+
+## Ec2VpcPeeringConnections
+
+- [CreateOrReplace](#ec2vpcpeeringconnections_createorreplace)
+- [Delete](#ec2vpcpeeringconnections_delete)
+- [GetByResourceGroup](#ec2vpcpeeringconnections_getbyresourcegroup)
+- [List](#ec2vpcpeeringconnections_list)
+- [ListByResourceGroup](#ec2vpcpeeringconnections_listbyresourcegroup)
+- [Update](#ec2vpcpeeringconnections_update)
+
+## Ec2Vpcs
+
+- [CreateOrReplace](#ec2vpcs_createorreplace)
+- [Delete](#ec2vpcs_delete)
+- [GetByResourceGroup](#ec2vpcs_getbyresourcegroup)
+- [List](#ec2vpcs_list)
+- [ListByResourceGroup](#ec2vpcs_listbyresourcegroup)
+- [Update](#ec2vpcs_update)
+
+## EcrImageDetails
+
+- [CreateOrReplace](#ecrimagedetails_createorreplace)
+- [Delete](#ecrimagedetails_delete)
+- [GetByResourceGroup](#ecrimagedetails_getbyresourcegroup)
+- [List](#ecrimagedetails_list)
+- [ListByResourceGroup](#ecrimagedetails_listbyresourcegroup)
+- [Update](#ecrimagedetails_update)
+
+## EcrRepositories
+
+- [CreateOrReplace](#ecrrepositories_createorreplace)
+- [Delete](#ecrrepositories_delete)
+- [GetByResourceGroup](#ecrrepositories_getbyresourcegroup)
+- [List](#ecrrepositories_list)
+- [ListByResourceGroup](#ecrrepositories_listbyresourcegroup)
+- [Update](#ecrrepositories_update)
+
+## EcsClusters
+
+- [CreateOrReplace](#ecsclusters_createorreplace)
+- [Delete](#ecsclusters_delete)
+- [GetByResourceGroup](#ecsclusters_getbyresourcegroup)
+- [List](#ecsclusters_list)
+- [ListByResourceGroup](#ecsclusters_listbyresourcegroup)
+- [Update](#ecsclusters_update)
+
+## EcsServices
+
+- [CreateOrReplace](#ecsservices_createorreplace)
+- [Delete](#ecsservices_delete)
+- [GetByResourceGroup](#ecsservices_getbyresourcegroup)
+- [List](#ecsservices_list)
+- [ListByResourceGroup](#ecsservices_listbyresourcegroup)
+- [Update](#ecsservices_update)
+
+## EcsTaskDefinitions
+
+- [CreateOrReplace](#ecstaskdefinitions_createorreplace)
+- [Delete](#ecstaskdefinitions_delete)
+- [GetByResourceGroup](#ecstaskdefinitions_getbyresourcegroup)
+- [List](#ecstaskdefinitions_list)
+- [ListByResourceGroup](#ecstaskdefinitions_listbyresourcegroup)
+- [Update](#ecstaskdefinitions_update)
+
+## EfsFileSystems
+
+- [CreateOrReplace](#efsfilesystems_createorreplace)
+- [Delete](#efsfilesystems_delete)
+- [GetByResourceGroup](#efsfilesystems_getbyresourcegroup)
+- [List](#efsfilesystems_list)
+- [ListByResourceGroup](#efsfilesystems_listbyresourcegroup)
+- [Update](#efsfilesystems_update)
+
+## EfsMountTargets
+
+- [CreateOrReplace](#efsmounttargets_createorreplace)
+- [Delete](#efsmounttargets_delete)
+- [GetByResourceGroup](#efsmounttargets_getbyresourcegroup)
+- [List](#efsmounttargets_list)
+- [ListByResourceGroup](#efsmounttargets_listbyresourcegroup)
+- [Update](#efsmounttargets_update)
+
+## EksClusters
+
+- [CreateOrReplace](#eksclusters_createorreplace)
+- [Delete](#eksclusters_delete)
+- [Get](#eksclusters_get)
+- [List](#eksclusters_list)
+
+## EksNodegroups
+
+- [CreateOrReplace](#eksnodegroups_createorreplace)
+- [Delete](#eksnodegroups_delete)
+- [GetByResourceGroup](#eksnodegroups_getbyresourcegroup)
+- [List](#eksnodegroups_list)
+- [ListByResourceGroup](#eksnodegroups_listbyresourcegroup)
+- [Update](#eksnodegroups_update)
+
+## ElasticBeanstalkApplications
+
+- [CreateOrReplace](#elasticbeanstalkapplications_createorreplace)
+- [Delete](#elasticbeanstalkapplications_delete)
+- [GetByResourceGroup](#elasticbeanstalkapplications_getbyresourcegroup)
+- [List](#elasticbeanstalkapplications_list)
+- [ListByResourceGroup](#elasticbeanstalkapplications_listbyresourcegroup)
+- [Update](#elasticbeanstalkapplications_update)
+
+## ElasticBeanstalkConfigurationTemplates
+
+- [CreateOrReplace](#elasticbeanstalkconfigurationtemplates_createorreplace)
+- [Delete](#elasticbeanstalkconfigurationtemplates_delete)
+- [GetByResourceGroup](#elasticbeanstalkconfigurationtemplates_getbyresourcegroup)
+- [List](#elasticbeanstalkconfigurationtemplates_list)
+- [ListByResourceGroup](#elasticbeanstalkconfigurationtemplates_listbyresourcegroup)
+- [Update](#elasticbeanstalkconfigurationtemplates_update)
+
+## ElasticBeanstalkEnvironments
+
+- [CreateOrReplace](#elasticbeanstalkenvironments_createorreplace)
+- [Delete](#elasticbeanstalkenvironments_delete)
+- [GetByResourceGroup](#elasticbeanstalkenvironments_getbyresourcegroup)
+- [List](#elasticbeanstalkenvironments_list)
+- [ListByResourceGroup](#elasticbeanstalkenvironments_listbyresourcegroup)
+- [Update](#elasticbeanstalkenvironments_update)
+
+## ElasticLoadBalancingV2Listeners
+
+- [CreateOrReplace](#elasticloadbalancingv2listeners_createorreplace)
+- [Delete](#elasticloadbalancingv2listeners_delete)
+- [GetByResourceGroup](#elasticloadbalancingv2listeners_getbyresourcegroup)
+- [List](#elasticloadbalancingv2listeners_list)
+- [ListByResourceGroup](#elasticloadbalancingv2listeners_listbyresourcegroup)
+- [Update](#elasticloadbalancingv2listeners_update)
+
+## ElasticLoadBalancingV2LoadBalancers
+
+- [CreateOrReplace](#elasticloadbalancingv2loadbalancers_createorreplace)
+- [Delete](#elasticloadbalancingv2loadbalancers_delete)
+- [GetByResourceGroup](#elasticloadbalancingv2loadbalancers_getbyresourcegroup)
+- [List](#elasticloadbalancingv2loadbalancers_list)
+- [ListByResourceGroup](#elasticloadbalancingv2loadbalancers_listbyresourcegroup)
+- [Update](#elasticloadbalancingv2loadbalancers_update)
+
+## ElasticLoadBalancingV2TargetGroups
+
+- [CreateOrReplace](#elasticloadbalancingv2targetgroups_createorreplace)
+- [Delete](#elasticloadbalancingv2targetgroups_delete)
+- [GetByResourceGroup](#elasticloadbalancingv2targetgroups_getbyresourcegroup)
+- [List](#elasticloadbalancingv2targetgroups_list)
+- [ListByResourceGroup](#elasticloadbalancingv2targetgroups_listbyresourcegroup)
+- [Update](#elasticloadbalancingv2targetgroups_update)
+
+## ElasticLoadBalancingv2TargetHealthDescriptions
+
+- [CreateOrReplace](#elasticloadbalancingv2targethealthdescriptions_createorreplace)
+- [Delete](#elasticloadbalancingv2targethealthdescriptions_delete)
+- [GetByResourceGroup](#elasticloadbalancingv2targethealthdescriptions_getbyresourcegroup)
+- [List](#elasticloadbalancingv2targethealthdescriptions_list)
+- [ListByResourceGroup](#elasticloadbalancingv2targethealthdescriptions_listbyresourcegroup)
+- [Update](#elasticloadbalancingv2targethealthdescriptions_update)
+
+## EmrClusterSummaries
+
+- [CreateOrReplace](#emrclustersummaries_createorreplace)
+- [Delete](#emrclustersummaries_delete)
+- [GetByResourceGroup](#emrclustersummaries_getbyresourcegroup)
+- [List](#emrclustersummaries_list)
+- [ListByResourceGroup](#emrclustersummaries_listbyresourcegroup)
+- [Update](#emrclustersummaries_update)
+
+## EmrClusters
+
+- [CreateOrReplace](#emrclusters_createorreplace)
+- [Delete](#emrclusters_delete)
+- [GetByResourceGroup](#emrclusters_getbyresourcegroup)
+- [List](#emrclusters_list)
+- [ListByResourceGroup](#emrclusters_listbyresourcegroup)
+- [Update](#emrclusters_update)
+
+## GuardDutyDetectors
+
+- [CreateOrReplace](#guarddutydetectors_createorreplace)
+- [Delete](#guarddutydetectors_delete)
+- [GetByResourceGroup](#guarddutydetectors_getbyresourcegroup)
+- [List](#guarddutydetectors_list)
+- [ListByResourceGroup](#guarddutydetectors_listbyresourcegroup)
+- [Update](#guarddutydetectors_update)
+
+## IamAccessKeyLastUseds
+
+- [CreateOrReplace](#iamaccesskeylastuseds_createorreplace)
+- [Delete](#iamaccesskeylastuseds_delete)
+- [GetByResourceGroup](#iamaccesskeylastuseds_getbyresourcegroup)
+- [List](#iamaccesskeylastuseds_list)
+- [ListByResourceGroup](#iamaccesskeylastuseds_listbyresourcegroup)
+- [Update](#iamaccesskeylastuseds_update)
+
+## IamAccessKeyMetadataInfo
+
+- [CreateOrReplace](#iamaccesskeymetadatainfo_createorreplace)
+- [Delete](#iamaccesskeymetadatainfo_delete)
+- [GetByResourceGroup](#iamaccesskeymetadatainfo_getbyresourcegroup)
+- [List](#iamaccesskeymetadatainfo_list)
+- [ListByResourceGroup](#iamaccesskeymetadatainfo_listbyresourcegroup)
+- [Update](#iamaccesskeymetadatainfo_update)
+
+## IamGroups
+
+- [CreateOrReplace](#iamgroups_createorreplace)
+- [Delete](#iamgroups_delete)
+- [GetByResourceGroup](#iamgroups_getbyresourcegroup)
+- [List](#iamgroups_list)
+- [ListByResourceGroup](#iamgroups_listbyresourcegroup)
+- [Update](#iamgroups_update)
+
+## IamInstanceProfiles
+
+- [CreateOrUpdate](#iaminstanceprofiles_createorupdate)
+- [Delete](#iaminstanceprofiles_delete)
+- [GetByResourceGroup](#iaminstanceprofiles_getbyresourcegroup)
+- [List](#iaminstanceprofiles_list)
+- [ListByResourceGroup](#iaminstanceprofiles_listbyresourcegroup)
+- [Update](#iaminstanceprofiles_update)
+
+## IamMfaDevices
+
+- [CreateOrReplace](#iammfadevices_createorreplace)
+- [Delete](#iammfadevices_delete)
+- [GetByResourceGroup](#iammfadevices_getbyresourcegroup)
+- [List](#iammfadevices_list)
+- [ListByResourceGroup](#iammfadevices_listbyresourcegroup)
+- [Update](#iammfadevices_update)
+
+## IamPasswordPolicies
+
+- [CreateOrReplace](#iampasswordpolicies_createorreplace)
+- [Delete](#iampasswordpolicies_delete)
+- [GetByResourceGroup](#iampasswordpolicies_getbyresourcegroup)
+- [List](#iampasswordpolicies_list)
+- [ListByResourceGroup](#iampasswordpolicies_listbyresourcegroup)
+- [Update](#iampasswordpolicies_update)
+
+## IamPolicyVersions
+
+- [CreateOrReplace](#iampolicyversions_createorreplace)
+- [Delete](#iampolicyversions_delete)
+- [GetByResourceGroup](#iampolicyversions_getbyresourcegroup)
+- [List](#iampolicyversions_list)
+- [ListByResourceGroup](#iampolicyversions_listbyresourcegroup)
+- [Update](#iampolicyversions_update)
+
+## IamRoles
+
+- [CreateOrReplace](#iamroles_createorreplace)
+- [Delete](#iamroles_delete)
+- [GetByResourceGroup](#iamroles_getbyresourcegroup)
+- [List](#iamroles_list)
+- [ListByResourceGroup](#iamroles_listbyresourcegroup)
+- [Update](#iamroles_update)
+
+## IamServerCertificates
+
+- [CreateOrReplace](#iamservercertificates_createorreplace)
+- [Delete](#iamservercertificates_delete)
+- [GetByResourceGroup](#iamservercertificates_getbyresourcegroup)
+- [List](#iamservercertificates_list)
+- [ListByResourceGroup](#iamservercertificates_listbyresourcegroup)
+- [Update](#iamservercertificates_update)
+
+## IamVirtualMfaDevices
+
+- [CreateOrReplace](#iamvirtualmfadevices_createorreplace)
+- [Delete](#iamvirtualmfadevices_delete)
+- [GetByResourceGroup](#iamvirtualmfadevices_getbyresourcegroup)
+- [List](#iamvirtualmfadevices_list)
+- [ListByResourceGroup](#iamvirtualmfadevices_listbyresourcegroup)
+- [Update](#iamvirtualmfadevices_update)
+
+## KmsAliases
+
+- [CreateOrReplace](#kmsaliases_createorreplace)
+- [Delete](#kmsaliases_delete)
+- [GetByResourceGroup](#kmsaliases_getbyresourcegroup)
+- [List](#kmsaliases_list)
+- [ListByResourceGroup](#kmsaliases_listbyresourcegroup)
+- [Update](#kmsaliases_update)
+
+## KmsKeys
+
+- [CreateOrReplace](#kmskeys_createorreplace)
+- [Delete](#kmskeys_delete)
+- [GetByResourceGroup](#kmskeys_getbyresourcegroup)
+- [List](#kmskeys_list)
+- [ListByResourceGroup](#kmskeys_listbyresourcegroup)
+- [Update](#kmskeys_update)
+
+## LambdaFunctionCodeLocations
+
+- [CreateOrReplace](#lambdafunctioncodelocations_createorreplace)
+- [Delete](#lambdafunctioncodelocations_delete)
+- [GetByResourceGroup](#lambdafunctioncodelocations_getbyresourcegroup)
+- [List](#lambdafunctioncodelocations_list)
+- [ListByResourceGroup](#lambdafunctioncodelocations_listbyresourcegroup)
+- [Update](#lambdafunctioncodelocations_update)
+
+## LambdaFunctions
+
+- [CreateOrReplace](#lambdafunctions_createorreplace)
+- [Delete](#lambdafunctions_delete)
+- [GetByResourceGroup](#lambdafunctions_getbyresourcegroup)
+- [List](#lambdafunctions_list)
+- [ListByResourceGroup](#lambdafunctions_listbyresourcegroup)
+- [Update](#lambdafunctions_update)
+
+## LightsailBuckets
+
+- [CreateOrReplace](#lightsailbuckets_createorreplace)
+- [Delete](#lightsailbuckets_delete)
+- [GetByResourceGroup](#lightsailbuckets_getbyresourcegroup)
+- [List](#lightsailbuckets_list)
+- [ListByResourceGroup](#lightsailbuckets_listbyresourcegroup)
+- [Update](#lightsailbuckets_update)
+
+## LightsailInstances
+
+- [CreateOrReplace](#lightsailinstances_createorreplace)
+- [Delete](#lightsailinstances_delete)
+- [GetByResourceGroup](#lightsailinstances_getbyresourcegroup)
+- [List](#lightsailinstances_list)
+- [ListByResourceGroup](#lightsailinstances_listbyresourcegroup)
+- [Update](#lightsailinstances_update)
+
+## LogsLogGroups
+
+- [CreateOrReplace](#logsloggroups_createorreplace)
+- [Delete](#logsloggroups_delete)
+- [GetByResourceGroup](#logsloggroups_getbyresourcegroup)
+- [List](#logsloggroups_list)
+- [ListByResourceGroup](#logsloggroups_listbyresourcegroup)
+- [Update](#logsloggroups_update)
+
+## LogsLogStreams
+
+- [CreateOrReplace](#logslogstreams_createorreplace)
+- [Delete](#logslogstreams_delete)
+- [GetByResourceGroup](#logslogstreams_getbyresourcegroup)
+- [List](#logslogstreams_list)
+- [ListByResourceGroup](#logslogstreams_listbyresourcegroup)
+- [Update](#logslogstreams_update)
+
+## LogsMetricFilters
+
+- [CreateOrReplace](#logsmetricfilters_createorreplace)
+- [Delete](#logsmetricfilters_delete)
+- [GetByResourceGroup](#logsmetricfilters_getbyresourcegroup)
+- [List](#logsmetricfilters_list)
+- [ListByResourceGroup](#logsmetricfilters_listbyresourcegroup)
+- [Update](#logsmetricfilters_update)
+
+## LogsSubscriptionFilters
+
+- [CreateOrReplace](#logssubscriptionfilters_createorreplace)
+- [Delete](#logssubscriptionfilters_delete)
+- [GetByResourceGroup](#logssubscriptionfilters_getbyresourcegroup)
+- [List](#logssubscriptionfilters_list)
+- [ListByResourceGroup](#logssubscriptionfilters_listbyresourcegroup)
+- [Update](#logssubscriptionfilters_update)
+
+## Macie2JobSummaries
+
+- [CreateOrReplace](#macie2jobsummaries_createorreplace)
+- [Delete](#macie2jobsummaries_delete)
+- [GetByResourceGroup](#macie2jobsummaries_getbyresourcegroup)
+- [List](#macie2jobsummaries_list)
+- [ListByResourceGroup](#macie2jobsummaries_listbyresourcegroup)
+- [Update](#macie2jobsummaries_update)
+
+## MacieAllowLists
+
+- [CreateOrReplace](#macieallowlists_createorreplace)
+- [Delete](#macieallowlists_delete)
+- [GetByResourceGroup](#macieallowlists_getbyresourcegroup)
+- [List](#macieallowlists_list)
+- [ListByResourceGroup](#macieallowlists_listbyresourcegroup)
+- [Update](#macieallowlists_update)
+
+## NetworkFirewallFirewallPolicies
+
+- [CreateOrReplace](#networkfirewallfirewallpolicies_createorreplace)
+- [Delete](#networkfirewallfirewallpolicies_delete)
+- [GetByResourceGroup](#networkfirewallfirewallpolicies_getbyresourcegroup)
+- [List](#networkfirewallfirewallpolicies_list)
+- [ListByResourceGroup](#networkfirewallfirewallpolicies_listbyresourcegroup)
+- [Update](#networkfirewallfirewallpolicies_update)
+
+## NetworkFirewallFirewalls
+
+- [CreateOrReplace](#networkfirewallfirewalls_createorreplace)
+- [Delete](#networkfirewallfirewalls_delete)
+- [GetByResourceGroup](#networkfirewallfirewalls_getbyresourcegroup)
+- [List](#networkfirewallfirewalls_list)
+- [ListByResourceGroup](#networkfirewallfirewalls_listbyresourcegroup)
+- [Update](#networkfirewallfirewalls_update)
+
+## NetworkFirewallRuleGroups
+
+- [CreateOrReplace](#networkfirewallrulegroups_createorreplace)
+- [Delete](#networkfirewallrulegroups_delete)
+- [GetByResourceGroup](#networkfirewallrulegroups_getbyresourcegroup)
+- [List](#networkfirewallrulegroups_list)
+- [ListByResourceGroup](#networkfirewallrulegroups_listbyresourcegroup)
+- [Update](#networkfirewallrulegroups_update)
+
+## OpenSearchDomainStatuses
+
+- [CreateOrReplace](#opensearchdomainstatuses_createorreplace)
+- [Delete](#opensearchdomainstatuses_delete)
+- [GetByResourceGroup](#opensearchdomainstatuses_getbyresourcegroup)
+- [List](#opensearchdomainstatuses_list)
+- [ListByResourceGroup](#opensearchdomainstatuses_listbyresourcegroup)
+- [Update](#opensearchdomainstatuses_update)
+
+## Operations
+
+- [List](#operations_list)
+
+## OrganizationsAccounts
+
+- [CreateOrReplace](#organizationsaccounts_createorreplace)
+- [Delete](#organizationsaccounts_delete)
+- [GetByResourceGroup](#organizationsaccounts_getbyresourcegroup)
+- [List](#organizationsaccounts_list)
+- [ListByResourceGroup](#organizationsaccounts_listbyresourcegroup)
+- [Update](#organizationsaccounts_update)
+
+## OrganizationsOrganizations
+
+- [CreateOrReplace](#organizationsorganizations_createorreplace)
+- [Delete](#organizationsorganizations_delete)
+- [GetByResourceGroup](#organizationsorganizations_getbyresourcegroup)
+- [List](#organizationsorganizations_list)
+- [ListByResourceGroup](#organizationsorganizations_listbyresourcegroup)
+- [Update](#organizationsorganizations_update)
+
+## RdsDbClusters
+
+- [CreateOrReplace](#rdsdbclusters_createorreplace)
+- [Delete](#rdsdbclusters_delete)
+- [GetByResourceGroup](#rdsdbclusters_getbyresourcegroup)
+- [List](#rdsdbclusters_list)
+- [ListByResourceGroup](#rdsdbclusters_listbyresourcegroup)
+- [Update](#rdsdbclusters_update)
+
+## RdsDbInstances
+
+- [CreateOrReplace](#rdsdbinstances_createorreplace)
+- [Delete](#rdsdbinstances_delete)
+- [GetByResourceGroup](#rdsdbinstances_getbyresourcegroup)
+- [List](#rdsdbinstances_list)
+- [ListByResourceGroup](#rdsdbinstances_listbyresourcegroup)
+- [Update](#rdsdbinstances_update)
+
+## RdsDbSnapshotAttributesResults
+
+- [CreateOrReplace](#rdsdbsnapshotattributesresults_createorreplace)
+- [Delete](#rdsdbsnapshotattributesresults_delete)
+- [GetByResourceGroup](#rdsdbsnapshotattributesresults_getbyresourcegroup)
+- [List](#rdsdbsnapshotattributesresults_list)
+- [ListByResourceGroup](#rdsdbsnapshotattributesresults_listbyresourcegroup)
+- [Update](#rdsdbsnapshotattributesresults_update)
+
+## RdsDbSnapshots
+
+- [CreateOrReplace](#rdsdbsnapshots_createorreplace)
+- [Delete](#rdsdbsnapshots_delete)
+- [GetByResourceGroup](#rdsdbsnapshots_getbyresourcegroup)
+- [List](#rdsdbsnapshots_list)
+- [ListByResourceGroup](#rdsdbsnapshots_listbyresourcegroup)
+- [Update](#rdsdbsnapshots_update)
+
+## RdsEventSubscriptions
+
+- [CreateOrReplace](#rdseventsubscriptions_createorreplace)
+- [Delete](#rdseventsubscriptions_delete)
+- [GetByResourceGroup](#rdseventsubscriptions_getbyresourcegroup)
+- [List](#rdseventsubscriptions_list)
+- [ListByResourceGroup](#rdseventsubscriptions_listbyresourcegroup)
+- [Update](#rdseventsubscriptions_update)
+
+## RdsExportTasks
+
+- [CreateOrReplace](#rdsexporttasks_createorreplace)
+- [Delete](#rdsexporttasks_delete)
+- [GetByResourceGroup](#rdsexporttasks_getbyresourcegroup)
+- [List](#rdsexporttasks_list)
+- [ListByResourceGroup](#rdsexporttasks_listbyresourcegroup)
+- [Update](#rdsexporttasks_update)
+
+## RedshiftClusterParameterGroups
+
+- [CreateOrReplace](#redshiftclusterparametergroups_createorreplace)
+- [Delete](#redshiftclusterparametergroups_delete)
+- [GetByResourceGroup](#redshiftclusterparametergroups_getbyresourcegroup)
+- [List](#redshiftclusterparametergroups_list)
+- [ListByResourceGroup](#redshiftclusterparametergroups_listbyresourcegroup)
+- [Update](#redshiftclusterparametergroups_update)
+
+## RedshiftClusters
+
+- [CreateOrReplace](#redshiftclusters_createorreplace)
+- [Delete](#redshiftclusters_delete)
+- [GetByResourceGroup](#redshiftclusters_getbyresourcegroup)
+- [List](#redshiftclusters_list)
+- [ListByResourceGroup](#redshiftclusters_listbyresourcegroup)
+- [Update](#redshiftclusters_update)
+
+## Route53DomainsDomainSummaries
+
+- [CreateOrReplace](#route53domainsdomainsummaries_createorreplace)
+- [Delete](#route53domainsdomainsummaries_delete)
+- [GetByResourceGroup](#route53domainsdomainsummaries_getbyresourcegroup)
+- [List](#route53domainsdomainsummaries_list)
+- [ListByResourceGroup](#route53domainsdomainsummaries_listbyresourcegroup)
+- [Update](#route53domainsdomainsummaries_update)
+
+## Route53HostedZones
+
+- [CreateOrReplace](#route53hostedzones_createorreplace)
+- [Delete](#route53hostedzones_delete)
+- [GetByResourceGroup](#route53hostedzones_getbyresourcegroup)
+- [List](#route53hostedzones_list)
+- [ListByResourceGroup](#route53hostedzones_listbyresourcegroup)
+- [Update](#route53hostedzones_update)
+
+## Route53ResourceRecordSets
+
+- [CreateOrReplace](#route53resourcerecordsets_createorreplace)
+- [Delete](#route53resourcerecordsets_delete)
+- [GetByResourceGroup](#route53resourcerecordsets_getbyresourcegroup)
+- [List](#route53resourcerecordsets_list)
+- [ListByResourceGroup](#route53resourcerecordsets_listbyresourcegroup)
+- [Update](#route53resourcerecordsets_update)
+
+## S3AccessPoints
+
+- [CreateOrReplace](#s3accesspoints_createorreplace)
+- [Delete](#s3accesspoints_delete)
+- [GetByResourceGroup](#s3accesspoints_getbyresourcegroup)
+- [List](#s3accesspoints_list)
+- [ListByResourceGroup](#s3accesspoints_listbyresourcegroup)
+- [Update](#s3accesspoints_update)
+
+## S3BucketPolicies
+
+- [CreateOrReplace](#s3bucketpolicies_createorreplace)
+- [Delete](#s3bucketpolicies_delete)
+- [GetByResourceGroup](#s3bucketpolicies_getbyresourcegroup)
+- [List](#s3bucketpolicies_list)
+- [ListByResourceGroup](#s3bucketpolicies_listbyresourcegroup)
+- [Update](#s3bucketpolicies_update)
+
+## S3Buckets
+
+- [CreateOrReplace](#s3buckets_createorreplace)
+- [Delete](#s3buckets_delete)
+- [GetByResourceGroup](#s3buckets_getbyresourcegroup)
+- [List](#s3buckets_list)
+- [ListByResourceGroup](#s3buckets_listbyresourcegroup)
+- [Update](#s3buckets_update)
+
+## S3ControlMultiRegionAccessPointPolicyDocuments
+
+- [CreateOrReplace](#s3controlmultiregionaccesspointpolicydocuments_createorreplace)
+- [Delete](#s3controlmultiregionaccesspointpolicydocuments_delete)
+- [GetByResourceGroup](#s3controlmultiregionaccesspointpolicydocuments_getbyresourcegroup)
+- [List](#s3controlmultiregionaccesspointpolicydocuments_list)
+- [ListByResourceGroup](#s3controlmultiregionaccesspointpolicydocuments_listbyresourcegroup)
+- [Update](#s3controlmultiregionaccesspointpolicydocuments_update)
+
+## SageMakerApps
+
+- [CreateOrReplace](#sagemakerapps_createorreplace)
+- [Delete](#sagemakerapps_delete)
+- [GetByResourceGroup](#sagemakerapps_getbyresourcegroup)
+- [List](#sagemakerapps_list)
+- [ListByResourceGroup](#sagemakerapps_listbyresourcegroup)
+- [Update](#sagemakerapps_update)
+
+## SageMakerNotebookInstanceSummaries
+
+- [CreateOrReplace](#sagemakernotebookinstancesummaries_createorreplace)
+- [Delete](#sagemakernotebookinstancesummaries_delete)
+- [GetByResourceGroup](#sagemakernotebookinstancesummaries_getbyresourcegroup)
+- [List](#sagemakernotebookinstancesummaries_list)
+- [ListByResourceGroup](#sagemakernotebookinstancesummaries_listbyresourcegroup)
+- [Update](#sagemakernotebookinstancesummaries_update)
+
+## SecretsManagerResourcePolicies
+
+- [CreateOrReplace](#secretsmanagerresourcepolicies_createorreplace)
+- [Delete](#secretsmanagerresourcepolicies_delete)
+- [GetByResourceGroup](#secretsmanagerresourcepolicies_getbyresourcegroup)
+- [List](#secretsmanagerresourcepolicies_list)
+- [ListByResourceGroup](#secretsmanagerresourcepolicies_listbyresourcegroup)
+- [Update](#secretsmanagerresourcepolicies_update)
+
+## SecretsManagerSecrets
+
+- [CreateOrReplace](#secretsmanagersecrets_createorreplace)
+- [Delete](#secretsmanagersecrets_delete)
+- [GetByResourceGroup](#secretsmanagersecrets_getbyresourcegroup)
+- [List](#secretsmanagersecrets_list)
+- [ListByResourceGroup](#secretsmanagersecrets_listbyresourcegroup)
+- [Update](#secretsmanagersecrets_update)
+
+## SnsSubscriptions
+
+- [CreateOrReplace](#snssubscriptions_createorreplace)
+- [Delete](#snssubscriptions_delete)
+- [GetByResourceGroup](#snssubscriptions_getbyresourcegroup)
+- [List](#snssubscriptions_list)
+- [ListByResourceGroup](#snssubscriptions_listbyresourcegroup)
+- [Update](#snssubscriptions_update)
+
+## SnsTopics
+
+- [CreateOrReplace](#snstopics_createorreplace)
+- [Delete](#snstopics_delete)
+- [GetByResourceGroup](#snstopics_getbyresourcegroup)
+- [List](#snstopics_list)
+- [ListByResourceGroup](#snstopics_listbyresourcegroup)
+- [Update](#snstopics_update)
+
+## SqsQueues
+
+- [CreateOrReplace](#sqsqueues_createorreplace)
+- [Delete](#sqsqueues_delete)
+- [GetByResourceGroup](#sqsqueues_getbyresourcegroup)
+- [List](#sqsqueues_list)
+- [ListByResourceGroup](#sqsqueues_listbyresourcegroup)
+- [Update](#sqsqueues_update)
+
+## SsmInstanceInformations
+
+- [CreateOrReplace](#ssminstanceinformations_createorreplace)
+- [Delete](#ssminstanceinformations_delete)
+- [GetByResourceGroup](#ssminstanceinformations_getbyresourcegroup)
+- [List](#ssminstanceinformations_list)
+- [ListByResourceGroup](#ssminstanceinformations_listbyresourcegroup)
+- [Update](#ssminstanceinformations_update)
+
+## SsmParameters
+
+- [CreateOrReplace](#ssmparameters_createorreplace)
+- [Delete](#ssmparameters_delete)
+- [GetByResourceGroup](#ssmparameters_getbyresourcegroup)
+- [List](#ssmparameters_list)
+- [ListByResourceGroup](#ssmparameters_listbyresourcegroup)
+- [Update](#ssmparameters_update)
+
+## SsmResourceComplianceSummaryItems
+
+- [CreateOrReplace](#ssmresourcecompliancesummaryitems_createorreplace)
+- [Delete](#ssmresourcecompliancesummaryitems_delete)
+- [GetByResourceGroup](#ssmresourcecompliancesummaryitems_getbyresourcegroup)
+- [List](#ssmresourcecompliancesummaryitems_list)
+- [ListByResourceGroup](#ssmresourcecompliancesummaryitems_listbyresourcegroup)
+- [Update](#ssmresourcecompliancesummaryitems_update)
+
+## WafWebAclSummaries
+
+- [CreateOrReplace](#wafwebaclsummaries_createorreplace)
+- [Delete](#wafwebaclsummaries_delete)
+- [GetByResourceGroup](#wafwebaclsummaries_getbyresourcegroup)
+- [List](#wafwebaclsummaries_list)
+- [ListByResourceGroup](#wafwebaclsummaries_listbyresourcegroup)
+- [Update](#wafwebaclsummaries_update)
+
+## Wafv2LoggingConfigurations
+
+- [CreateOrReplace](#wafv2loggingconfigurations_createorreplace)
+- [Delete](#wafv2loggingconfigurations_delete)
+- [GetByResourceGroup](#wafv2loggingconfigurations_getbyresourcegroup)
+- [List](#wafv2loggingconfigurations_list)
+- [ListByResourceGroup](#wafv2loggingconfigurations_listbyresourcegroup)
+- [Update](#wafv2loggingconfigurations_update)
+### AccessAnalyzerAnalyzers_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AccessAnalyzerProperties;
+import com.azure.resourcemanager.awsconnector.models.ArchiveRule;
+import com.azure.resourcemanager.awsconnector.models.AwsAccessAnalyzerProperties;
+import com.azure.resourcemanager.awsconnector.models.Filter;
+import com.azure.resourcemanager.awsconnector.models.Tag;
+import com.azure.resourcemanager.awsconnector.models.UnusedAccessConfiguration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AccessAnalyzerAnalyzers CreateOrReplace.
+ */
+public final class AccessAnalyzerAnalyzersCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AccessAnalyzerAnalyzers_CreateOrReplace.json
+ */
+ /**
+ * Sample code: AccessAnalyzerAnalyzers_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ accessAnalyzerAnalyzersCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.accessAnalyzerAnalyzers()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("jpcbvhsspnqhnreartkjyr")
+ .withExistingResourceGroup("rgaccessAnalyzerAnalyzer")
+ .withTags(mapOf("key5531", "fakeTokenPlaceholder"))
+ .withProperties(
+ new AccessAnalyzerProperties()
+ .withAwsProperties(
+ new AwsAccessAnalyzerProperties()
+ .withAnalyzerConfiguration(new UnusedAccessConfiguration().withUnusedAccessAge(29))
+ .withAnalyzerName("owom")
+ .withArchiveRules(
+ Arrays.asList(new ArchiveRule()
+ .withFilter(Arrays.asList(new Filter().withContains(Arrays.asList("hpzoliradchznu"))
+ .withEq(Arrays.asList("vlrqwrfkkwxvyxmqpbmwkxig"))
+ .withExists(true)
+ .withNeq(Arrays.asList("ro"))
+ .withProperty("pzndukmteempygtvmsrcrjulphe")))
+ .withRuleName("hvfnklcbuefkibrtayx")))
+ .withArn("bmt")
+ .withTags(Arrays
+ .asList(new Tag().withKey("fakeTokenPlaceholder").withValue("mtcjrbabaynnrmqttjf")))
+ .withType("vswmvhmkyxepqkvvksbglssmrgg"))
+ .withPublicCloudConnectorsResourceId("qfefhuzrkvg")
+ .withAwsAccountId("pvsawejgihtmvcjqnob")
+ .withArn("dgzbebaorvepu")
+ .withPublicCloudResourceName("euuddejz")
+ .withAwsSourceSchema("ur")
+ .withAwsRegion("edosnsqdwcvgl")
+ .withAwsTags(mapOf("key746", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AccessAnalyzerAnalyzers_Delete
+
+```java
+/**
+ * Samples for AccessAnalyzerAnalyzers Delete.
+ */
+public final class AccessAnalyzerAnalyzersDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AccessAnalyzerAnalyzers_Delete.json
+ */
+ /**
+ * Sample code: AccessAnalyzerAnalyzers_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ accessAnalyzerAnalyzersDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.accessAnalyzerAnalyzers()
+ .delete("rgaccessAnalyzerAnalyzer",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AccessAnalyzerAnalyzers_GetByResourceGroup
+
+```java
+/**
+ * Samples for AccessAnalyzerAnalyzers GetByResourceGroup.
+ */
+public final class AccessAnalyzerAnalyzersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AccessAnalyzerAnalyzers_Get.json
+ */
+ /**
+ * Sample code: AccessAnalyzerAnalyzers_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void accessAnalyzerAnalyzersGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.accessAnalyzerAnalyzers()
+ .getByResourceGroupWithResponse("rgaccessAnalyzerAnalyzer",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AccessAnalyzerAnalyzers_List
+
+```java
+/**
+ * Samples for AccessAnalyzerAnalyzers List.
+ */
+public final class AccessAnalyzerAnalyzersListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AccessAnalyzerAnalyzers_ListBySubscription.json
+ */
+ /**
+ * Sample code: AccessAnalyzerAnalyzers_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ accessAnalyzerAnalyzersListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.accessAnalyzerAnalyzers().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AccessAnalyzerAnalyzers_ListByResourceGroup
+
+```java
+/**
+ * Samples for AccessAnalyzerAnalyzers ListByResourceGroup.
+ */
+public final class AccessAnalyzerAnalyzersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AccessAnalyzerAnalyzers_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: AccessAnalyzerAnalyzers_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ accessAnalyzerAnalyzersListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.accessAnalyzerAnalyzers()
+ .listByResourceGroup("rgaccessAnalyzerAnalyzer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AccessAnalyzerAnalyzers_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AccessAnalyzer;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AccessAnalyzerAnalyzers Update.
+ */
+public final class AccessAnalyzerAnalyzersUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AccessAnalyzerAnalyzers_Update.json
+ */
+ /**
+ * Sample code: AccessAnalyzerAnalyzers_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ accessAnalyzerAnalyzersUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ AccessAnalyzer resource = manager.accessAnalyzerAnalyzers()
+ .getByResourceGroupWithResponse("rgaccessAnalyzerAnalyzer",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1003", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AcmCertificateSummaries_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AcmCertificateSummaryProperties;
+import com.azure.resourcemanager.awsconnector.models.AwsAcmCertificateSummaryProperties;
+import com.azure.resourcemanager.awsconnector.models.CertificateStatus;
+import com.azure.resourcemanager.awsconnector.models.CertificateStatusEnumValue;
+import com.azure.resourcemanager.awsconnector.models.CertificateType;
+import com.azure.resourcemanager.awsconnector.models.CertificateTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ExtendedKeyUsageName;
+import com.azure.resourcemanager.awsconnector.models.KeyAlgorithm;
+import com.azure.resourcemanager.awsconnector.models.KeyAlgorithmEnumValue;
+import com.azure.resourcemanager.awsconnector.models.KeyUsageName;
+import com.azure.resourcemanager.awsconnector.models.RenewalEligibility;
+import com.azure.resourcemanager.awsconnector.models.RenewalEligibilityEnumValue;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AcmCertificateSummaries CreateOrReplace.
+ */
+public final class AcmCertificateSummariesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AcmCertificateSummaries_CreateOrReplace.json
+ */
+ /**
+ * Sample code: AcmCertificateSummaries_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ acmCertificateSummariesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.acmCertificateSummaries()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("eqfgreyihqzkrcyaxvy")
+ .withExistingResourceGroup("rgacmCertificateSummary")
+ .withTags(mapOf("key9243", "fakeTokenPlaceholder"))
+ .withProperties(
+ new AcmCertificateSummaryProperties()
+ .withAwsProperties(
+ new AwsAcmCertificateSummaryProperties().withCertificateArn("vhqvrajxbcvstwiktrdilktqiwnsij")
+ .withCreatedAt(OffsetDateTime.parse("2024-10-08T03:50:37.721Z"))
+ .withDomainName("fiqx")
+ .withExported(true)
+ .withExtendedKeyUsages(Arrays.asList(ExtendedKeyUsageName.ANY))
+ .withHasAdditionalSubjectAlternativeNames(true)
+ .withImportedAt(OffsetDateTime.parse("2024-10-08T03:50:37.721Z"))
+ .withInUse(true)
+ .withIssuedAt(OffsetDateTime.parse("2024-10-08T03:50:37.721Z"))
+ .withKeyAlgorithm(new KeyAlgorithmEnumValue().withValue(KeyAlgorithm.EC_PRIME256V1))
+ .withKeyUsages(Arrays.asList(KeyUsageName.ANY))
+ .withNotAfter(OffsetDateTime.parse("2024-10-08T03:50:37.721Z"))
+ .withNotBefore(OffsetDateTime.parse("2024-10-08T03:50:37.721Z"))
+ .withRenewalEligibility(
+ new RenewalEligibilityEnumValue().withValue(RenewalEligibility.ELIGIBLE))
+ .withRevokedAt(OffsetDateTime.parse("2024-10-08T03:50:37.722Z"))
+ .withStatus(new CertificateStatusEnumValue().withValue(CertificateStatus.EXPIRED))
+ .withSubjectAlternativeNameSummaries(Arrays.asList("oqoukflpt"))
+ .withType(new CertificateTypeEnumValue().withValue(CertificateType.AMAZON_ISSUED)))
+ .withPublicCloudConnectorsResourceId("xljncqoovqhqla")
+ .withAwsAccountId("mmihqxcdhmlvxmnbgspuxddg")
+ .withArn("smalkenxqfohwtuwomvsiijg")
+ .withPublicCloudResourceName("qdwfldkrmzyifdlfjpxducgue")
+ .withAwsSourceSchema("llzijlhflcpnbwpp")
+ .withAwsRegion("vkxrwhsmzwvxzraytkujjlrzxdpbz")
+ .withAwsTags(mapOf("key6233", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AcmCertificateSummaries_Delete
+
+```java
+/**
+ * Samples for AcmCertificateSummaries Delete.
+ */
+public final class AcmCertificateSummariesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AcmCertificateSummaries_Delete.json
+ */
+ /**
+ * Sample code: AcmCertificateSummaries_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ acmCertificateSummariesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.acmCertificateSummaries()
+ .delete("rgacmCertificateSummary",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AcmCertificateSummaries_GetByResourceGroup
+
+```java
+/**
+ * Samples for AcmCertificateSummaries GetByResourceGroup.
+ */
+public final class AcmCertificateSummariesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AcmCertificateSummaries_Get.json
+ */
+ /**
+ * Sample code: AcmCertificateSummaries_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void acmCertificateSummariesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.acmCertificateSummaries()
+ .getByResourceGroupWithResponse("rgacmCertificateSummary",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AcmCertificateSummaries_List
+
+```java
+/**
+ * Samples for AcmCertificateSummaries List.
+ */
+public final class AcmCertificateSummariesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AcmCertificateSummaries_ListBySubscription.json
+ */
+ /**
+ * Sample code: AcmCertificateSummaries_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ acmCertificateSummariesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.acmCertificateSummaries().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AcmCertificateSummaries_ListByResourceGroup
+
+```java
+/**
+ * Samples for AcmCertificateSummaries ListByResourceGroup.
+ */
+public final class AcmCertificateSummariesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AcmCertificateSummaries_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: AcmCertificateSummaries_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ acmCertificateSummariesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.acmCertificateSummaries()
+ .listByResourceGroup("rgacmCertificateSummary", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AcmCertificateSummaries_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AcmCertificateSummary;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AcmCertificateSummaries Update.
+ */
+public final class AcmCertificateSummariesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AcmCertificateSummaries_Update.json
+ */
+ /**
+ * Sample code: AcmCertificateSummaries_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ acmCertificateSummariesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ AcmCertificateSummary resource = manager.acmCertificateSummaries()
+ .getByResourceGroupWithResponse("rgacmCertificateSummary",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key3895", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ApiGatewayRestApis_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ApiGatewayRestApiProperties;
+import com.azure.resourcemanager.awsconnector.models.AwsApiGatewayRestApiProperties;
+import com.azure.resourcemanager.awsconnector.models.EndpointConfiguration;
+import com.azure.resourcemanager.awsconnector.models.S3Location;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ApiGatewayRestApis CreateOrReplace.
+ */
+public final class ApiGatewayRestApisCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayRestApis_CreateOrReplace.json
+ */
+ /**
+ * Sample code: ApiGatewayRestApis_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ apiGatewayRestApisCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayRestApis()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("lvqczthlir")
+ .withExistingResourceGroup("rgapiGatewayRestApi")
+ .withTags(mapOf("key4163", "fakeTokenPlaceholder"))
+ .withProperties(
+ new ApiGatewayRestApiProperties()
+ .withAwsProperties(new AwsApiGatewayRestApiProperties().withApiKeySourceType("fakeTokenPlaceholder")
+ .withBinaryMediaTypes(Arrays.asList("ahebgkheozatj"))
+ .withBody(mapOf())
+ .withBodyS3Location(new S3Location().withBucket("oyosqpl")
+ .withEtag("uuzlkbqlua")
+ .withKey("fakeTokenPlaceholder")
+ .withVersion("lxbmxdrsftqwazmgxlokuvf"))
+ .withCloneFrom("boxfqilij")
+ .withDescription("ngqhnoniiohuwofr")
+ .withDisableExecuteApiEndpoint(true)
+ .withEndpointConfiguration(
+ new EndpointConfiguration().withTypes(Arrays.asList("dfhdcsvbasfadeuneaz"))
+ .withVpcEndpointIds(Arrays.asList("evzbafcpdpklwppge")))
+ .withFailOnWarnings(true)
+ .withMinimumCompressionSize(11)
+ .withMode("odjmjlcgkmskasrasoegyxnuqr")
+ .withName("ioyxag")
+ .withParameters(mapOf("key9886", "fakeTokenPlaceholder"))
+ .withPolicy("jefpbspvgtinulqfyjxuxcunzkpgvw")
+ .withRestApiId("hlyfcdcgknhbjezdxgbg")
+ .withRootResourceId("jfmgp")
+ .withTags(Arrays
+ .asList(new TagAutoGenerated().withKey("fakeTokenPlaceholder").withValue("uozcrgrc"))))
+ .withPublicCloudConnectorsResourceId("diszsfnljduoshvzzgcyypsjnxs")
+ .withAwsAccountId("qjcvyhdegwhvzsiuqjwnvdqs")
+ .withArn("mjkvrfpgenxbfozh")
+ .withPublicCloudResourceName("tvtpphxonsvnvtmccbpcsvvvslbxxc")
+ .withAwsSourceSchema("oagqktjiz")
+ .withAwsRegion("bzj")
+ .withAwsTags(mapOf("key5478", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ApiGatewayRestApis_Delete
+
+```java
+/**
+ * Samples for ApiGatewayRestApis Delete.
+ */
+public final class ApiGatewayRestApisDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayRestApis_Delete.json
+ */
+ /**
+ * Sample code: ApiGatewayRestApis_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void apiGatewayRestApisDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayRestApis()
+ .delete("rgapiGatewayRestApi",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ApiGatewayRestApis_GetByResourceGroup
+
+```java
+/**
+ * Samples for ApiGatewayRestApis GetByResourceGroup.
+ */
+public final class ApiGatewayRestApisGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayRestApis_Get.json
+ */
+ /**
+ * Sample code: ApiGatewayRestApis_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void apiGatewayRestApisGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayRestApis()
+ .getByResourceGroupWithResponse("rgapiGatewayRestApi",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ApiGatewayRestApis_List
+
+```java
+/**
+ * Samples for ApiGatewayRestApis List.
+ */
+public final class ApiGatewayRestApisListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayRestApis_ListBySubscription.json
+ */
+ /**
+ * Sample code: ApiGatewayRestApis_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ apiGatewayRestApisListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayRestApis().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ApiGatewayRestApis_ListByResourceGroup
+
+```java
+/**
+ * Samples for ApiGatewayRestApis ListByResourceGroup.
+ */
+public final class ApiGatewayRestApisListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayRestApis_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: ApiGatewayRestApis_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ apiGatewayRestApisListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayRestApis().listByResourceGroup("rgapiGatewayRestApi", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ApiGatewayRestApis_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ApiGatewayRestApi;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ApiGatewayRestApis Update.
+ */
+public final class ApiGatewayRestApisUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayRestApis_Update.json
+ */
+ /**
+ * Sample code: ApiGatewayRestApis_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void apiGatewayRestApisUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ ApiGatewayRestApi resource = manager.apiGatewayRestApis()
+ .getByResourceGroupWithResponse("rgapiGatewayRestApi",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key2677", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ApiGatewayStages_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AccessLogSetting;
+import com.azure.resourcemanager.awsconnector.models.ApiGatewayStageProperties;
+import com.azure.resourcemanager.awsconnector.models.AwsApiGatewayStageProperties;
+import com.azure.resourcemanager.awsconnector.models.CanarySetting;
+import com.azure.resourcemanager.awsconnector.models.MethodSetting;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated2;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ApiGatewayStages CreateOrReplace.
+ */
+public final class ApiGatewayStagesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayStages_CreateOrReplace.json
+ */
+ /**
+ * Sample code: ApiGatewayStages_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ apiGatewayStagesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayStages()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("ixsfvcwygoceaaydsgkvubn")
+ .withExistingResourceGroup("rgapiGatewayStage")
+ .withTags(mapOf("key72", "fakeTokenPlaceholder"))
+ .withProperties(new ApiGatewayStageProperties()
+ .withAwsProperties(new AwsApiGatewayStageProperties()
+ .withAccessLogSetting(
+ new AccessLogSetting().withDestinationArn("bjnehkhrjvy").withFormat("jyhhqidjew"))
+ .withCacheClusterEnabled(true)
+ .withCacheClusterSize("tqpsxptkwagykhry")
+ .withCanarySetting(new CanarySetting().withDeploymentId("jgfflpjviovk")
+ .withPercentTraffic(30)
+ .withStageVariableOverrides(mapOf("key989", "fakeTokenPlaceholder"))
+ .withUseStageCache(true))
+ .withClientCertificateId("lcqbeactfdarpess")
+ .withDeploymentId("muwatddsfb")
+ .withDescription("dmxblpsncciutbbmfihkloqaxuab")
+ .withDocumentationVersion("fltvrg")
+ .withMethodSettings(Arrays.asList(new MethodSetting().withCacheDataEncrypted(true)
+ .withCacheTtlInSeconds(15)
+ .withCachingEnabled(true)
+ .withDataTraceEnabled(true)
+ .withHttpMethod("wojjxwrlnmnertmfkstofcoekjxd")
+ .withLoggingLevel("cezcwkojlmp")
+ .withMetricsEnabled(true)
+ .withResourcePath("fsaykfuxsfvultpnnpjjbak")
+ .withThrottlingBurstLimit(3)
+ .withThrottlingRateLimit(28)))
+ .withRestApiId("cycztypxndrdmstjwi")
+ .withStageName("iukgreicaikhlooycykkql")
+ .withTags(Arrays.asList(new TagAutoGenerated2().withKey("fakeTokenPlaceholder").withValue("x")))
+ .withTracingEnabled(true)
+ .withVariables(mapOf("key3007", "fakeTokenPlaceholder")))
+ .withPublicCloudConnectorsResourceId("mvvltlx")
+ .withAwsAccountId("umvnhbnjqbgppgipyiuxvyt")
+ .withArn("aitrzss")
+ .withPublicCloudResourceName("hxgdpqw")
+ .withAwsSourceSchema("ttwdzidmknfow")
+ .withAwsRegion("qkjxqupbneeuooyrfnblmwlrpmjsiu")
+ .withAwsTags(mapOf("key1607", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ApiGatewayStages_Delete
+
+```java
+/**
+ * Samples for ApiGatewayStages Delete.
+ */
+public final class ApiGatewayStagesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayStages_Delete.json
+ */
+ /**
+ * Sample code: ApiGatewayStages_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void apiGatewayStagesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayStages()
+ .delete("rgapiGatewayStage",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ApiGatewayStages_GetByResourceGroup
+
+```java
+/**
+ * Samples for ApiGatewayStages GetByResourceGroup.
+ */
+public final class ApiGatewayStagesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayStages_Get.json
+ */
+ /**
+ * Sample code: ApiGatewayStages_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void apiGatewayStagesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayStages()
+ .getByResourceGroupWithResponse("rgapiGatewayStage",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ApiGatewayStages_List
+
+```java
+/**
+ * Samples for ApiGatewayStages List.
+ */
+public final class ApiGatewayStagesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayStages_ListBySubscription.json
+ */
+ /**
+ * Sample code: ApiGatewayStages_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ apiGatewayStagesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayStages().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ApiGatewayStages_ListByResourceGroup
+
+```java
+/**
+ * Samples for ApiGatewayStages ListByResourceGroup.
+ */
+public final class ApiGatewayStagesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayStages_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: ApiGatewayStages_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ apiGatewayStagesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.apiGatewayStages().listByResourceGroup("rgapiGatewayStage", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ApiGatewayStages_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ApiGatewayStage;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ApiGatewayStages Update.
+ */
+public final class ApiGatewayStagesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ApiGatewayStages_Update.json
+ */
+ /**
+ * Sample code: ApiGatewayStages_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void apiGatewayStagesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ ApiGatewayStage resource = manager.apiGatewayStages()
+ .getByResourceGroupWithResponse("rgapiGatewayStage",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key149", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AppSyncGraphqlApis_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AdditionalAuthenticationProvider;
+import com.azure.resourcemanager.awsconnector.models.AppSyncGraphqlApiProperties;
+import com.azure.resourcemanager.awsconnector.models.AuthenticationType;
+import com.azure.resourcemanager.awsconnector.models.AuthenticationTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.AwsAppSyncGraphqlApiProperties;
+import com.azure.resourcemanager.awsconnector.models.CognitoUserPoolConfig;
+import com.azure.resourcemanager.awsconnector.models.DataSourceLevelMetricsBehavior;
+import com.azure.resourcemanager.awsconnector.models.DataSourceLevelMetricsBehaviorEnumValue;
+import com.azure.resourcemanager.awsconnector.models.DefaultAction;
+import com.azure.resourcemanager.awsconnector.models.DefaultActionEnumValue;
+import com.azure.resourcemanager.awsconnector.models.EnhancedMetricsConfig;
+import com.azure.resourcemanager.awsconnector.models.FieldLogLevel;
+import com.azure.resourcemanager.awsconnector.models.FieldLogLevelEnumValue;
+import com.azure.resourcemanager.awsconnector.models.GraphQLApiIntrospectionConfig;
+import com.azure.resourcemanager.awsconnector.models.GraphQLApiIntrospectionConfigEnumValue;
+import com.azure.resourcemanager.awsconnector.models.GraphQLApiType;
+import com.azure.resourcemanager.awsconnector.models.GraphQLApiTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.GraphQLApiVisibility;
+import com.azure.resourcemanager.awsconnector.models.GraphQLApiVisibilityEnumValue;
+import com.azure.resourcemanager.awsconnector.models.LambdaAuthorizerConfig;
+import com.azure.resourcemanager.awsconnector.models.LogConfig;
+import com.azure.resourcemanager.awsconnector.models.OpenIdConnectConfig;
+import com.azure.resourcemanager.awsconnector.models.OperationLevelMetricsConfig;
+import com.azure.resourcemanager.awsconnector.models.OperationLevelMetricsConfigEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ResolverLevelMetricsBehavior;
+import com.azure.resourcemanager.awsconnector.models.ResolverLevelMetricsBehaviorEnumValue;
+import com.azure.resourcemanager.awsconnector.models.UserPoolConfig;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AppSyncGraphqlApis CreateOrReplace.
+ */
+public final class AppSyncGraphqlApisCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AppSyncGraphqlApis_CreateOrReplace.json
+ */
+ /**
+ * Sample code: AppSyncGraphqlApis_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ appSyncGraphqlApisCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.appSyncGraphqlApis()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("fgdkdvbltlygm")
+ .withExistingResourceGroup("rgappSyncGraphqlApi")
+ .withTags(mapOf("key1836", "fakeTokenPlaceholder"))
+ .withProperties(
+ new AppSyncGraphqlApiProperties()
+ .withAwsProperties(new AwsAppSyncGraphqlApiProperties()
+ .withAdditionalAuthenticationProviders(Arrays.asList(new AdditionalAuthenticationProvider()
+ .withAuthenticationType(new AuthenticationTypeEnumValue()
+ .withValue(AuthenticationType.AMAZON_COGNITO_USER_POOLS))
+ .withLambdaAuthorizerConfig(
+ new LambdaAuthorizerConfig().withAuthorizerResultTtlInSeconds(30)
+ .withAuthorizerUri("hupypfpuanzvftlniinspu")
+ .withIdentityValidationExpression("hspldtc"))
+ .withOpenIdConnectConfig(new OpenIdConnectConfig().withAuthTtl(22L)
+ .withClientId("luiqpcaoupuxlkhifmjmssaujivibq")
+ .withIatTtl(12L)
+ .withIssuer("gxglhkdfnvrrtsalksedpcukpk"))
+ .withUserPoolConfig(new CognitoUserPoolConfig().withAppIdClientRegex("qpfpcfsunn")
+ .withAwsRegion("nmpxe")
+ .withUserPoolId("jelygyotigqdtvomkxwllisaodzpme"))))
+ .withApiId("czvdzpkqmu")
+ .withApiType(new GraphQLApiTypeEnumValue().withValue(GraphQLApiType.GRAPHQL))
+ .withArn("oasogwqjupaovgjaimqwyvcevu")
+ .withAuthenticationType(
+ new AuthenticationTypeEnumValue().withValue(AuthenticationType.AMAZON_COGNITO_USER_POOLS))
+ .withDns(mapOf("key7870", "fakeTokenPlaceholder"))
+ .withEnhancedMetricsConfig(new EnhancedMetricsConfig()
+ .withDataSourceLevelMetricsBehavior(new DataSourceLevelMetricsBehaviorEnumValue()
+ .withValue(DataSourceLevelMetricsBehavior.FULL_REQUEST_DATA_SOURCE_METRICS))
+ .withOperationLevelMetricsConfig(new OperationLevelMetricsConfigEnumValue()
+ .withValue(OperationLevelMetricsConfig.DISABLED))
+ .withResolverLevelMetricsBehavior(new ResolverLevelMetricsBehaviorEnumValue()
+ .withValue(ResolverLevelMetricsBehavior.FULL_REQUEST_RESOLVER_METRICS)))
+ .withIntrospectionConfig(new GraphQLApiIntrospectionConfigEnumValue()
+ .withValue(GraphQLApiIntrospectionConfig.DISABLED))
+ .withLambdaAuthorizerConfig(new LambdaAuthorizerConfig().withAuthorizerResultTtlInSeconds(30)
+ .withAuthorizerUri("hupypfpuanzvftlniinspu")
+ .withIdentityValidationExpression("hspldtc"))
+ .withLogConfig(new LogConfig().withCloudWatchLogsRoleArn("gsfpxvghd")
+ .withExcludeVerboseContent(true)
+ .withFieldLogLevel(new FieldLogLevelEnumValue().withValue(FieldLogLevel.ALL)))
+ .withMergedApiExecutionRoleArn("ehtdxecdhgxhmtqhpneaqzgdtivz")
+ .withName("ahvfu")
+ .withOpenIdConnectConfig(new OpenIdConnectConfig().withAuthTtl(22L)
+ .withClientId("luiqpcaoupuxlkhifmjmssaujivibq")
+ .withIatTtl(12L)
+ .withIssuer("gxglhkdfnvrrtsalksedpcukpk"))
+ .withOwner("pdudimkqozuoczxvlgmj")
+ .withOwnerContact("qkvw")
+ .withQueryDepthLimit(14)
+ .withResolverCountLimit(15)
+ .withTags(mapOf("key7170", "fakeTokenPlaceholder"))
+ .withUris(mapOf("key6507", "fakeTokenPlaceholder"))
+ .withUserPoolConfig(new UserPoolConfig().withAppIdClientRegex("kjfgmmyyzmsywex")
+ .withAwsRegion("knaq")
+ .withDefaultAction(new DefaultActionEnumValue().withValue(DefaultAction.ALLOW))
+ .withUserPoolId("tbbntrreowxutvnasgmcdupsaxoooz"))
+ .withVisibility(new GraphQLApiVisibilityEnumValue().withValue(GraphQLApiVisibility.GLOBAL))
+ .withWafWebAclArn("fpy")
+ .withXrayEnabled(true))
+ .withPublicCloudConnectorsResourceId("ljxfphaevwpkqtymdowsbhw")
+ .withAwsAccountId("cbznxz")
+ .withArn("yozrofizgppbrqqingfk")
+ .withPublicCloudResourceName("xqnxjggrhseymoklvqpreiucveuev")
+ .withAwsSourceSchema("hldvwyk")
+ .withAwsRegion("ponyxnfudopabngrux")
+ .withAwsTags(mapOf("key8377", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AppSyncGraphqlApis_Delete
+
+```java
+/**
+ * Samples for AppSyncGraphqlApis Delete.
+ */
+public final class AppSyncGraphqlApisDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AppSyncGraphqlApis_Delete.json
+ */
+ /**
+ * Sample code: AppSyncGraphqlApis_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void appSyncGraphqlApisDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.appSyncGraphqlApis()
+ .delete("rgappSyncGraphqlApi",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppSyncGraphqlApis_GetByResourceGroup
+
+```java
+/**
+ * Samples for AppSyncGraphqlApis GetByResourceGroup.
+ */
+public final class AppSyncGraphqlApisGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AppSyncGraphqlApis_Get.json
+ */
+ /**
+ * Sample code: AppSyncGraphqlApis_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void appSyncGraphqlApisGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.appSyncGraphqlApis()
+ .getByResourceGroupWithResponse("rgappSyncGraphqlApi",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppSyncGraphqlApis_List
+
+```java
+/**
+ * Samples for AppSyncGraphqlApis List.
+ */
+public final class AppSyncGraphqlApisListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AppSyncGraphqlApis_ListBySubscription.json
+ */
+ /**
+ * Sample code: AppSyncGraphqlApis_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ appSyncGraphqlApisListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.appSyncGraphqlApis().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppSyncGraphqlApis_ListByResourceGroup
+
+```java
+/**
+ * Samples for AppSyncGraphqlApis ListByResourceGroup.
+ */
+public final class AppSyncGraphqlApisListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AppSyncGraphqlApis_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: AppSyncGraphqlApis_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ appSyncGraphqlApisListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.appSyncGraphqlApis().listByResourceGroup("rgappSyncGraphqlApi", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppSyncGraphqlApis_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AppSyncGraphqlApi;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AppSyncGraphqlApis Update.
+ */
+public final class AppSyncGraphqlApisUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AppSyncGraphqlApis_Update.json
+ */
+ /**
+ * Sample code: AppSyncGraphqlApis_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void appSyncGraphqlApisUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ AppSyncGraphqlApi resource = manager.appSyncGraphqlApis()
+ .getByResourceGroupWithResponse("rgappSyncGraphqlApi",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key3768", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AutoScalingAutoScalingGroups_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AcceleratorCountRequest;
+import com.azure.resourcemanager.awsconnector.models.AcceleratorTotalMemoryMiBRequest;
+import com.azure.resourcemanager.awsconnector.models.AutoScalingGroupProperties;
+import com.azure.resourcemanager.awsconnector.models.AwsAutoScalingGroupProperties;
+import com.azure.resourcemanager.awsconnector.models.BaselineEbsBandwidthMbpsRequest;
+import com.azure.resourcemanager.awsconnector.models.InstanceMaintenancePolicy;
+import com.azure.resourcemanager.awsconnector.models.InstanceRequirements;
+import com.azure.resourcemanager.awsconnector.models.InstancesDistribution;
+import com.azure.resourcemanager.awsconnector.models.LaunchTemplate;
+import com.azure.resourcemanager.awsconnector.models.LaunchTemplateOverrides;
+import com.azure.resourcemanager.awsconnector.models.LaunchTemplateSpecification;
+import com.azure.resourcemanager.awsconnector.models.LifecycleHookSpecification;
+import com.azure.resourcemanager.awsconnector.models.MemoryGiBPerVCpuRequest;
+import com.azure.resourcemanager.awsconnector.models.MemoryMiBRequest;
+import com.azure.resourcemanager.awsconnector.models.MetricsCollection;
+import com.azure.resourcemanager.awsconnector.models.MixedInstancesPolicy;
+import com.azure.resourcemanager.awsconnector.models.NetworkBandwidthGbpsRequest;
+import com.azure.resourcemanager.awsconnector.models.NetworkInterfaceCountRequest;
+import com.azure.resourcemanager.awsconnector.models.NotificationConfiguration;
+import com.azure.resourcemanager.awsconnector.models.TagProperty;
+import com.azure.resourcemanager.awsconnector.models.TotalLocalStorageGBRequest;
+import com.azure.resourcemanager.awsconnector.models.VCpuCountRequest;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AutoScalingAutoScalingGroups CreateOrReplace.
+ */
+public final class AutoScalingAutoScalingGroupsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AutoScalingAutoScalingGroups_CreateOrReplace.json
+ */
+ /**
+ * Sample code: AutoScalingAutoScalingGroups_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void autoScalingAutoScalingGroupsCreateOrReplace(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.autoScalingAutoScalingGroups()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("vfitxfllzgknmbaqgpsv")
+ .withExistingResourceGroup("rgautoScalingAutoScalingGroup")
+ .withTags(mapOf("key2337", "fakeTokenPlaceholder"))
+ .withProperties(new AutoScalingGroupProperties()
+ .withAwsProperties(
+ new AwsAutoScalingGroupProperties().withAutoScalingGroupName("zvp")
+ .withAvailabilityZones(Arrays.asList("bvcnltgekeqrzklsnfieubhugr"))
+ .withCapacityRebalance(true)
+ .withContext("dnmovg")
+ .withCooldown("r")
+ .withDefaultInstanceWarmup(24)
+ .withDesiredCapacity("xtu")
+ .withDesiredCapacityType("wncmimbdveox")
+ .withHealthCheckGracePeriod(9)
+ .withHealthCheckType("ustkoarefpvnhxrtqua")
+ .withInstanceId("noghdbfliygsadtjosovasxq")
+ .withInstanceMaintenancePolicy(
+ new InstanceMaintenancePolicy().withMaxHealthyPercentage(23).withMinHealthyPercentage(6))
+ .withLaunchConfigurationName("rgadwyrtzaxbfkbsbjaygujtc")
+ .withLaunchTemplate(
+ new LaunchTemplateSpecification().withLaunchTemplateId("zpcgiqsftmwjzwqifodopjuvfoxed")
+ .withLaunchTemplateName("jq")
+ .withVersion("kdlpart"))
+ .withLifecycleHookSpecificationList(
+ Arrays.asList(new LifecycleHookSpecification().withDefaultResult("qbeojpqbpnhst")
+ .withHeartbeatTimeout(14)
+ .withLifecycleHookName("xeqfmdmthyzrdxjbmdkyy")
+ .withLifecycleTransition("xsufodhykhlutvc")
+ .withNotificationMetadata("bknbkafxdozjlnprrlkrqstgwchxl")
+ .withNotificationTargetArn("dkeqhlwuifyfamkufdryfiybxnle")
+ .withRoleArn("bhenujqtabiiryjgl")))
+ .withLoadBalancerNames(Arrays.asList("qsgaefmtltksmmwswpdfmnlwvovi"))
+ .withMaxInstanceLifetime(25)
+ .withMaxSize("vqxfpkdyusfijwc")
+ .withMetricsCollection(Arrays.asList(new MetricsCollection().withGranularity("ygxetadl")
+ .withMetrics(Arrays.asList("hwukwnkctznjelut"))))
+ .withMinSize("rfdwflldttnzph")
+ .withMixedInstancesPolicy(
+ new MixedInstancesPolicy()
+ .withInstancesDistribution(
+ new InstancesDistribution().withOnDemandAllocationStrategy("s")
+ .withOnDemandBaseCapacity(11)
+ .withOnDemandPercentageAboveBaseCapacity(13)
+ .withSpotAllocationStrategy("mdqoylvmdfgnktujkkgcargpzgejts")
+ .withSpotInstancePools(21)
+ .withSpotMaxPrice("civdjpljorkrvqganofneu"))
+ .withLaunchTemplate(
+ new LaunchTemplate()
+ .withLaunchTemplateSpecification(new LaunchTemplateSpecification()
+ .withLaunchTemplateId("zpcgiqsftmwjzwqifodopjuvfoxed")
+ .withLaunchTemplateName("jq")
+ .withVersion("kdlpart"))
+ .withOverrides(Arrays.asList(new LaunchTemplateOverrides()
+ .withInstanceRequirements(new InstanceRequirements()
+ .withAcceleratorCount(
+ new AcceleratorCountRequest().withMax(22).withMin(12))
+ .withAcceleratorManufacturers(
+ Arrays.asList("yrnnynorjjxvzppzrgpahymhm"))
+ .withAcceleratorNames(Arrays.asList("iqmentbrnypcxv"))
+ .withAcceleratorTotalMemoryMiB(
+ new AcceleratorTotalMemoryMiBRequest().withMax(7).withMin(29))
+ .withAcceleratorTypes(Arrays.asList("kmvwibkxxklqitqxqqlpvfifvo"))
+ .withAllowedInstanceTypes(Arrays.asList("tzrxlaofwygbqglbwdxnqjy"))
+ .withBareMetal("kugjpzsjreywlvvzkebv")
+ .withBaselineEbsBandwidthMbps(
+ new BaselineEbsBandwidthMbpsRequest().withMax(2).withMin(19))
+ .withBurstablePerformance("jpwudasuoonf")
+ .withCpuManufacturers(Arrays.asList("scbxthzijnmur"))
+ .withExcludedInstanceTypes(Arrays.asList("edadlo"))
+ .withInstanceGenerations(Arrays.asList("f"))
+ .withLocalStorage("wglfmvquwice")
+ .withLocalStorageTypes(Arrays.asList("talnjrldmventgtzlwpaxfcenp"))
+ .withMaxSpotPriceAsPercentageOfOptimalOnDemandPrice(15)
+ .withMemoryGiBPerVCpu(
+ new MemoryGiBPerVCpuRequest().withMax(23).withMin(29))
+ .withMemoryMiB(new MemoryMiBRequest().withMax(27).withMin(27))
+ .withNetworkBandwidthGbps(
+ new NetworkBandwidthGbpsRequest().withMax(18).withMin(29))
+ .withNetworkInterfaceCount(
+ new NetworkInterfaceCountRequest().withMax(14).withMin(26))
+ .withOnDemandMaxPricePercentageOverLowestPrice(8)
+ .withRequireHibernateSupport(true)
+ .withSpotMaxPricePercentageOverLowestPrice(9)
+ .withTotalLocalStorageGB(
+ new TotalLocalStorageGBRequest().withMax(19).withMin(7))
+ .withVCpuCount(new VCpuCountRequest().withMax(9).withMin(26)))
+ .withInstanceType("phudgcnbis")
+ .withLaunchTemplateSpecification(new LaunchTemplateSpecification()
+ .withLaunchTemplateId("zpcgiqsftmwjzwqifodopjuvfoxed")
+ .withLaunchTemplateName("jq")
+ .withVersion("kdlpart"))
+ .withWeightedCapacity("iqa")))))
+ .withNewInstancesProtectedFromScaleIn(true)
+ .withNotificationConfiguration(
+ new NotificationConfiguration().withNotificationTypes(Arrays.asList("jzepnjbwtsw"))
+ .withTopicArn("hndjrwrlqssgciezop"))
+ .withNotificationConfigurations(Arrays
+ .asList(new NotificationConfiguration().withNotificationTypes(Arrays.asList("jzepnjbwtsw"))
+ .withTopicArn("hndjrwrlqssgciezop")))
+ .withPlacementGroup("pmanetwktlujhykhxtcekv")
+ .withServiceLinkedRoleArn("ffqtfkdv")
+ .withTags(Arrays.asList(new TagProperty().withKey("fakeTokenPlaceholder")
+ .withPropagateAtLaunch(true)
+ .withValue("xoncdkvjanxdfklvixodkyg")))
+ .withTargetGroupARNs(Arrays.asList("ttxjwgboopxrdiqxyqjdujw"))
+ .withTerminationPolicies(Arrays.asList("jvwpdujegrgjbdrxbvcjgs"))
+ .withVpcZoneIdentifier(Arrays.asList("fmqvstmohqtmjslrnsiuodevi")))
+ .withPublicCloudConnectorsResourceId("q")
+ .withAwsAccountId("eogdcteuaaazi")
+ .withArn("gsso")
+ .withPublicCloudResourceName("blomfowfltqwzdghycehvvdnr")
+ .withAwsSourceSchema("koleijkwf")
+ .withAwsRegion("cfqguizvjpckdsvetalwo")
+ .withAwsTags(mapOf("key6990", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AutoScalingAutoScalingGroups_Delete
+
+```java
+/**
+ * Samples for AutoScalingAutoScalingGroups Delete.
+ */
+public final class AutoScalingAutoScalingGroupsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AutoScalingAutoScalingGroups_Delete.json
+ */
+ /**
+ * Sample code: AutoScalingAutoScalingGroups_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ autoScalingAutoScalingGroupsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.autoScalingAutoScalingGroups()
+ .delete("rgautoScalingAutoScalingGroup",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AutoScalingAutoScalingGroups_GetByResourceGroup
+
+```java
+/**
+ * Samples for AutoScalingAutoScalingGroups GetByResourceGroup.
+ */
+public final class AutoScalingAutoScalingGroupsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AutoScalingAutoScalingGroups_Get.json
+ */
+ /**
+ * Sample code: AutoScalingAutoScalingGroups_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ autoScalingAutoScalingGroupsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.autoScalingAutoScalingGroups()
+ .getByResourceGroupWithResponse("rgautoScalingAutoScalingGroup",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AutoScalingAutoScalingGroups_List
+
+```java
+/**
+ * Samples for AutoScalingAutoScalingGroups List.
+ */
+public final class AutoScalingAutoScalingGroupsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AutoScalingAutoScalingGroups_ListBySubscription.json
+ */
+ /**
+ * Sample code: AutoScalingAutoScalingGroups_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void autoScalingAutoScalingGroupsListBySubscription(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.autoScalingAutoScalingGroups().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AutoScalingAutoScalingGroups_ListByResourceGroup
+
+```java
+/**
+ * Samples for AutoScalingAutoScalingGroups ListByResourceGroup.
+ */
+public final class AutoScalingAutoScalingGroupsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AutoScalingAutoScalingGroups_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: AutoScalingAutoScalingGroups_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void autoScalingAutoScalingGroupsListByResourceGroup(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.autoScalingAutoScalingGroups()
+ .listByResourceGroup("rgautoScalingAutoScalingGroup", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AutoScalingAutoScalingGroups_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AutoScalingGroup;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AutoScalingAutoScalingGroups Update.
+ */
+public final class AutoScalingAutoScalingGroupsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * AutoScalingAutoScalingGroups_Update.json
+ */
+ /**
+ * Sample code: AutoScalingAutoScalingGroups_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ autoScalingAutoScalingGroupsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ AutoScalingGroup resource = manager.autoScalingAutoScalingGroups()
+ .getByResourceGroupWithResponse("rgautoScalingAutoScalingGroup",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key9673", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudFormationStackSets_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ActiveModel;
+import com.azure.resourcemanager.awsconnector.models.AutoDeployment;
+import com.azure.resourcemanager.awsconnector.models.AwsCloudFormationStackSetProperties;
+import com.azure.resourcemanager.awsconnector.models.CallAs;
+import com.azure.resourcemanager.awsconnector.models.CloudFormationStackSetProperties;
+import com.azure.resourcemanager.awsconnector.models.DeploymentTargets;
+import com.azure.resourcemanager.awsconnector.models.DeploymentTargetsAccountFilterType;
+import com.azure.resourcemanager.awsconnector.models.OperationPreferences;
+import com.azure.resourcemanager.awsconnector.models.OperationPreferencesRegionConcurrencyType;
+import com.azure.resourcemanager.awsconnector.models.Parameter;
+import com.azure.resourcemanager.awsconnector.models.PermissionModel;
+import com.azure.resourcemanager.awsconnector.models.StackInstances;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated4;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudFormationStackSets CreateOrReplace.
+ */
+public final class CloudFormationStackSetsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStackSets_CreateOrReplace.json
+ */
+ /**
+ * Sample code: CloudFormationStackSets_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFormationStackSetsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStackSets()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("oubo")
+ .withExistingResourceGroup("rgcloudFormationStackSet")
+ .withTags(mapOf("key307", "fakeTokenPlaceholder"))
+ .withProperties(
+ new CloudFormationStackSetProperties()
+ .withAwsProperties(new AwsCloudFormationStackSetProperties().withAdministrationRoleArn("ybtuoky")
+ .withAutoDeployment(
+ new AutoDeployment().withEnabled(true).withRetainStacksOnAccountRemoval(true))
+ .withCallAs(CallAs.DELEGATED_ADMIN)
+ .withCapabilities(Arrays.asList("begwecrhvitloplqjhhydjwhve"))
+ .withDescription("czkasvectlrpghrjojr")
+ .withExecutionRoleName("fclmt")
+ .withManagedExecution(new ActiveModel().withActive(true))
+ .withOperationPreferences(new OperationPreferences().withFailureToleranceCount(30)
+ .withFailureTolerancePercentage(16)
+ .withMaxConcurrentCount(11)
+ .withMaxConcurrentPercentage(15)
+ .withRegionConcurrencyType(OperationPreferencesRegionConcurrencyType.PARALLEL)
+ .withRegionOrder(Arrays.asList("gwaceriunclgehhoue")))
+ .withParameters(Arrays
+ .asList(new Parameter().withParameterKey("fakeTokenPlaceholder")
+ .withParameterValue("lldiqsjfqukysjecb")))
+ .withPermissionModel(PermissionModel.SELF_MANAGED)
+ .withStackInstancesGroup(Arrays.asList(new StackInstances()
+ .withDeploymentTargets(new DeploymentTargets()
+ .withAccountFilterType(DeploymentTargetsAccountFilterType.DIFFERENCE)
+ .withAccounts(Arrays.asList("xc"))
+ .withAccountsUrl("nvixaunvovhintyelj")
+ .withOrganizationalUnitIds(Arrays.asList("gnnzuj")))
+ .withParameterOverrides(
+ Arrays.asList(new Parameter().withParameterKey("fakeTokenPlaceholder")
+ .withParameterValue("lldiqsjfqukysjecb")))
+ .withRegions(Arrays.asList("eyondljwt"))))
+ .withStackSetId("ypfkcclgbgzikkjqfeiq")
+ .withStackSetName("bkfqkuqedspfb")
+ .withTags(
+ Arrays.asList(new TagAutoGenerated4().withKey("fakeTokenPlaceholder").withValue("ntm")))
+ .withTemplateBody("no")
+ .withTemplateUrl("icoki"))
+ .withPublicCloudConnectorsResourceId("eqapackzslaofkx")
+ .withAwsAccountId("jtdycoxjyvqvrxyy")
+ .withArn("sldueqvlzdilykrozxapbb")
+ .withPublicCloudResourceName("dyaxkuzcwhqspayuipml")
+ .withAwsSourceSchema("wpvatxlrosokkyqsq")
+ .withAwsRegion("drpqdznyarlwjnjslcrmvm")
+ .withAwsTags(mapOf("key7598", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudFormationStackSets_Delete
+
+```java
+/**
+ * Samples for CloudFormationStackSets Delete.
+ */
+public final class CloudFormationStackSetsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStackSets_Delete.json
+ */
+ /**
+ * Sample code: CloudFormationStackSets_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFormationStackSetsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStackSets()
+ .delete("rgcloudFormationStackSet",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFormationStackSets_GetByResourceGroup
+
+```java
+/**
+ * Samples for CloudFormationStackSets GetByResourceGroup.
+ */
+public final class CloudFormationStackSetsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStackSets_Get.json
+ */
+ /**
+ * Sample code: CloudFormationStackSets_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudFormationStackSetsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStackSets()
+ .getByResourceGroupWithResponse("rgcloudFormationStackSet",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFormationStackSets_List
+
+```java
+/**
+ * Samples for CloudFormationStackSets List.
+ */
+public final class CloudFormationStackSetsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStackSets_ListBySubscription.json
+ */
+ /**
+ * Sample code: CloudFormationStackSets_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFormationStackSetsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStackSets().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFormationStackSets_ListByResourceGroup
+
+```java
+/**
+ * Samples for CloudFormationStackSets ListByResourceGroup.
+ */
+public final class CloudFormationStackSetsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStackSets_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: CloudFormationStackSets_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFormationStackSetsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStackSets()
+ .listByResourceGroup("rgcloudFormationStackSet", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFormationStackSets_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.CloudFormationStackSet;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudFormationStackSets Update.
+ */
+public final class CloudFormationStackSetsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStackSets_Update.json
+ */
+ /**
+ * Sample code: CloudFormationStackSets_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFormationStackSetsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ CloudFormationStackSet resource = manager.cloudFormationStackSets()
+ .getByResourceGroupWithResponse("rgcloudFormationStackSet",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key6480", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudFormationStacks_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsCloudFormationStackProperties;
+import com.azure.resourcemanager.awsconnector.models.Capabilities;
+import com.azure.resourcemanager.awsconnector.models.CloudFormationStackProperties;
+import com.azure.resourcemanager.awsconnector.models.Output;
+import com.azure.resourcemanager.awsconnector.models.StackStatus;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated3;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudFormationStacks CreateOrReplace.
+ */
+public final class CloudFormationStacksCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStacks_CreateOrReplace.json
+ */
+ /**
+ * Sample code: CloudFormationStacks_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFormationStacksCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStacks()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("igidmxpchpipflxgxqkge")
+ .withExistingResourceGroup("rgcloudFormationStack")
+ .withTags(mapOf("key8740", "fakeTokenPlaceholder"))
+ .withProperties(new CloudFormationStackProperties()
+ .withAwsProperties(new AwsCloudFormationStackProperties()
+ .withCapabilities(Arrays.asList(Capabilities.CAPABILITY_AUTO_EXPAND))
+ .withChangeSetId("diebgdscxgdrjl")
+ .withCreationTime("rbzmujrpza")
+ .withDescription("qgthunuomcbskx")
+ .withDisableRollback(true)
+ .withEnableTerminationProtection(true)
+ .withLastUpdateTime("ziwluvridlkgt")
+ .withNotificationARNs(Arrays.asList("hiumjcobumu"))
+ .withOutputs(Arrays.asList(new Output().withDescription("yr")
+ .withExportName("inzgbtgxtlkmbsthsiqyaownydl")
+ .withOutputKey("fakeTokenPlaceholder")
+ .withOutputValue("xrkebm")))
+ .withParameters(mapOf("key3924", "fakeTokenPlaceholder"))
+ .withParentId("spfnpubjgnn")
+ .withRoleArn("chneost")
+ .withRootId("dm")
+ .withStackId("pfdvktglgjlp")
+ .withStackName("kcpmjgjmtil")
+ .withStackPolicyUrl("azff")
+ .withStackStatus(StackStatus.CREATE_COMPLETE)
+ .withStackStatusReason("oashauqgm")
+ .withTags(Arrays
+ .asList(new TagAutoGenerated3().withKey("fakeTokenPlaceholder").withValue("xapmapwprakmhlboq")))
+ .withTemplateUrl("prpgfhggbaglqposmnlkc")
+ .withTimeoutInMinutes(21))
+ .withPublicCloudConnectorsResourceId("ccuizanjtbypcrcdmoelfyjkx")
+ .withAwsAccountId("yuzdhawgkrzzmppqjebmyzrqzsxbgh")
+ .withArn("wnbcxhzurwtzqcoirs")
+ .withPublicCloudResourceName("vjnhdxpreaebeaxeqmrhfuro")
+ .withAwsSourceSchema("ascbhyeewelekovixg")
+ .withAwsRegion("ovumxnjlsoffpzxyegazwgujni")
+ .withAwsTags(mapOf("key6002", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudFormationStacks_Delete
+
+```java
+/**
+ * Samples for CloudFormationStacks Delete.
+ */
+public final class CloudFormationStacksDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStacks_Delete.json
+ */
+ /**
+ * Sample code: CloudFormationStacks_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudFormationStacksDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStacks()
+ .delete("rgcloudFormationStack",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFormationStacks_GetByResourceGroup
+
+```java
+/**
+ * Samples for CloudFormationStacks GetByResourceGroup.
+ */
+public final class CloudFormationStacksGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStacks_Get.json
+ */
+ /**
+ * Sample code: CloudFormationStacks_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudFormationStacksGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStacks()
+ .getByResourceGroupWithResponse("rgcloudFormationStack",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFormationStacks_List
+
+```java
+/**
+ * Samples for CloudFormationStacks List.
+ */
+public final class CloudFormationStacksListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStacks_ListBySubscription.json
+ */
+ /**
+ * Sample code: CloudFormationStacks_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFormationStacksListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStacks().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFormationStacks_ListByResourceGroup
+
+```java
+/**
+ * Samples for CloudFormationStacks ListByResourceGroup.
+ */
+public final class CloudFormationStacksListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStacks_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: CloudFormationStacks_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFormationStacksListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFormationStacks().listByResourceGroup("rgcloudFormationStack", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFormationStacks_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.CloudFormationStack;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudFormationStacks Update.
+ */
+public final class CloudFormationStacksUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFormationStacks_Update.json
+ */
+ /**
+ * Sample code: CloudFormationStacks_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudFormationStacksUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ CloudFormationStack resource = manager.cloudFormationStacks()
+ .getByResourceGroupWithResponse("rgcloudFormationStack",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key4726", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudFrontDistributions_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsCloudFrontDistributionProperties;
+import com.azure.resourcemanager.awsconnector.models.CacheBehavior;
+import com.azure.resourcemanager.awsconnector.models.CloudFrontDistributionProperties;
+import com.azure.resourcemanager.awsconnector.models.Cookies;
+import com.azure.resourcemanager.awsconnector.models.CustomErrorResponse;
+import com.azure.resourcemanager.awsconnector.models.CustomOriginConfig;
+import com.azure.resourcemanager.awsconnector.models.DefaultCacheBehavior;
+import com.azure.resourcemanager.awsconnector.models.DistributionConfig;
+import com.azure.resourcemanager.awsconnector.models.ForwardedValues;
+import com.azure.resourcemanager.awsconnector.models.FunctionAssociation;
+import com.azure.resourcemanager.awsconnector.models.GeoRestriction;
+import com.azure.resourcemanager.awsconnector.models.LambdaFunctionAssociation;
+import com.azure.resourcemanager.awsconnector.models.LegacyCustomOrigin;
+import com.azure.resourcemanager.awsconnector.models.LegacyS3Origin;
+import com.azure.resourcemanager.awsconnector.models.Logging;
+import com.azure.resourcemanager.awsconnector.models.OriginAutoGenerated;
+import com.azure.resourcemanager.awsconnector.models.OriginCustomHeader;
+import com.azure.resourcemanager.awsconnector.models.OriginGroup;
+import com.azure.resourcemanager.awsconnector.models.OriginGroupFailoverCriteria;
+import com.azure.resourcemanager.awsconnector.models.OriginGroupMember;
+import com.azure.resourcemanager.awsconnector.models.OriginGroupMembers;
+import com.azure.resourcemanager.awsconnector.models.OriginGroups;
+import com.azure.resourcemanager.awsconnector.models.OriginShield;
+import com.azure.resourcemanager.awsconnector.models.Restrictions;
+import com.azure.resourcemanager.awsconnector.models.S3OriginConfig;
+import com.azure.resourcemanager.awsconnector.models.StatusCodes;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated5;
+import com.azure.resourcemanager.awsconnector.models.ViewerCertificate;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudFrontDistributions CreateOrReplace.
+ */
+public final class CloudFrontDistributionsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFrontDistributions_CreateOrReplace.json
+ */
+ /**
+ * Sample code: CloudFrontDistributions_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFrontDistributionsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFrontDistributions()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("nprgvufyhs")
+ .withExistingResourceGroup("rgcloudFrontDistribution")
+ .withTags(mapOf("key6544", "fakeTokenPlaceholder"))
+ .withProperties(new CloudFrontDistributionProperties()
+ .withAwsProperties(new AwsCloudFrontDistributionProperties()
+ .withDistributionConfig(
+ new DistributionConfig().withAliases(Arrays.asList("gibhsrynakjqasnexklzyr"))
+ .withCnamEs(Arrays.asList("qczbolddtyqh"))
+ .withCacheBehaviors(Arrays.asList(new CacheBehavior()
+ .withAllowedMethods(Arrays.asList("mgilninyxzl"))
+ .withCachePolicyId("jgthzlgddcq")
+ .withCachedMethods(Arrays.asList("mocyvkoubxnhxggwiguxclll"))
+ .withCompress(true)
+ .withDefaultTtl(12)
+ .withFieldLevelEncryptionId("egdaxlmmafenvmeeiyendhzfgb")
+ .withForwardedValues(new ForwardedValues()
+ .withCookies(new Cookies().withForward("vgdw")
+ .withWhitelistedNames(Arrays.asList("dyyppccyzusjttwxsvtauzikzpcic")))
+ .withHeaders(Arrays.asList("wthyef"))
+ .withQueryString(true)
+ .withQueryStringCacheKeys(Arrays.asList("ovsbbyypovwzfd")))
+ .withFunctionAssociations(
+ Arrays.asList(new FunctionAssociation().withEventType("rabilo")
+ .withFunctionArn("xqjivwlwegwmcpxpbdxlxwfkkoy")))
+ .withLambdaFunctionAssociations(
+ Arrays.asList(new LambdaFunctionAssociation().withEventType("adgevfqgfrqxotodrywqn")
+ .withIncludeBody(true)
+ .withLambdaFunctionArn("ofaqozmfhyrnzijzqjc")))
+ .withMaxTtl(22)
+ .withMinTtl(14)
+ .withOriginRequestPolicyId("mmggy")
+ .withPathPattern("dblpru")
+ .withRealtimeLogConfigArn("hlpmy")
+ .withResponseHeadersPolicyId("mexazovhbvttjpndsx")
+ .withSmoothStreaming(true)
+ .withTargetOriginId("muilt")
+ .withTrustedKeyGroups(Arrays.asList("rtoknopsknpyux"))
+ .withTrustedSigners(Arrays.asList("dqxymkhclbsojvcwgczgtw"))
+ .withViewerProtocolPolicy("tadcgla")))
+ .withComment("eqgjcikzog")
+ .withContinuousDeploymentPolicyId("jpzap")
+ .withCustomErrorResponses(Arrays.asList(new CustomErrorResponse().withErrorCachingMinTtl(16)
+ .withErrorCode(14)
+ .withResponseCode(26)
+ .withResponsePagePath("fgjymf")))
+ .withCustomOrigin(new LegacyCustomOrigin().withDnsName("dijgqalflftbtatmydfk")
+ .withHttpPort(3)
+ .withHttpsPort(26)
+ .withOriginProtocolPolicy("unrjgcwzebjixqsjmmzdwm")
+ .withOriginSslProtocols(Arrays.asList("clriolammhrzrrhmyovvmbxowayz")))
+ .withDefaultCacheBehavior(new DefaultCacheBehavior()
+ .withAllowedMethods(Arrays.asList("gtvgkaxaocaozvybswnfgud"))
+ .withCachePolicyId("txppezvfdbpaewlehepeycrdj")
+ .withCachedMethods(Arrays.asList("bpptfnqcsypifnydxpkjxaek"))
+ .withCompress(true)
+ .withDefaultTtl(16)
+ .withFieldLevelEncryptionId("adpzriyfhcj")
+ .withForwardedValues(new ForwardedValues()
+ .withCookies(new Cookies().withForward("vgdw")
+ .withWhitelistedNames(Arrays.asList("dyyppccyzusjttwxsvtauzikzpcic")))
+ .withHeaders(Arrays.asList("wthyef"))
+ .withQueryString(true)
+ .withQueryStringCacheKeys(Arrays.asList("ovsbbyypovwzfd")))
+ .withFunctionAssociations(
+ Arrays.asList(new FunctionAssociation().withEventType("rabilo")
+ .withFunctionArn("xqjivwlwegwmcpxpbdxlxwfkkoy")))
+ .withLambdaFunctionAssociations(
+ Arrays.asList(new LambdaFunctionAssociation().withEventType("adgevfqgfrqxotodrywqn")
+ .withIncludeBody(true)
+ .withLambdaFunctionArn("ofaqozmfhyrnzijzqjc")))
+ .withMaxTtl(11)
+ .withMinTtl(22)
+ .withOriginRequestPolicyId("vfi")
+ .withRealtimeLogConfigArn("gdfhajmumlspefunqlznktqzn")
+ .withResponseHeadersPolicyId("xnvjmk")
+ .withSmoothStreaming(true)
+ .withTargetOriginId("satcfgygtio")
+ .withTrustedKeyGroups(Arrays.asList("glzecp"))
+ .withTrustedSigners(Arrays.asList("yeheiezaavurjdn"))
+ .withViewerProtocolPolicy("vmvahgz"))
+ .withDefaultRootObject("qqacdjhmnrgxzg")
+ .withEnabled(true)
+ .withHttpVersion("jujxztvywwzj")
+ .withIpV6Enabled(true)
+ .withLogging(new Logging().withBucket("staluexfxdlonreqbr")
+ .withIncludeCookies(true)
+ .withPrefix("mzugdqzcjqfkxbyxwaho"))
+ .withOriginGroups(
+ new OriginGroups()
+ .withItems(Arrays.asList(new OriginGroup()
+ .withFailoverCriteria(new OriginGroupFailoverCriteria().withStatusCodes(
+ new StatusCodes().withItems(Arrays.asList(24)).withQuantity(13)))
+ .withId("cppcwh")
+ .withMembers(new OriginGroupMembers()
+ .withItems(Arrays.asList(new OriginGroupMember().withOriginId("ju")))
+ .withQuantity(19))))
+ .withQuantity(15))
+ .withOrigins(Arrays.asList(new OriginAutoGenerated().withConnectionAttempts(17)
+ .withConnectionTimeout(13)
+ .withCustomOriginConfig(new CustomOriginConfig().withHttpPort(6)
+ .withHttpsPort(10)
+ .withOriginKeepaliveTimeout(29)
+ .withOriginProtocolPolicy("utekqcjzgxdogmvyfxxzehzpcbhgu")
+ .withOriginReadTimeout(11)
+ .withOriginSslProtocols(Arrays.asList("lplnjynxpyxbrbyq")))
+ .withDomainName("tdvwmcxajsiushniomugxjkroqih")
+ .withId("jsvocvlfluxmig")
+ .withOriginAccessControlId("uwoxzymxpzbiohjphusuywrbri")
+ .withOriginCustomHeaders(
+ Arrays.asList(new OriginCustomHeader().withHeaderName("kdbkguzvgqpjinhenlsw")
+ .withHeaderValue("glzvvmflrrab")))
+ .withOriginPath("qhkjzdzxipwguohspfmkqtmp")
+ .withOriginShield(new OriginShield().withEnabled(true).withOriginShieldRegion("ubhpk"))
+ .withS3OriginConfig(new S3OriginConfig().withOriginAccessIdentity("sexllpdop"))))
+ .withPriceClass("wltams")
+ .withRestrictions(new Restrictions().withGeoRestriction(
+ new GeoRestriction().withLocations(Arrays.asList("qfbhxln")).withRestrictionType("ry")))
+ .withS3Origin(new LegacyS3Origin().withDnsName("bgxohpxhcml")
+ .withOriginAccessIdentity("itatexxuwwvgnusaleemttplfhx"))
+ .withStaging(true)
+ .withViewerCertificate(new ViewerCertificate().withAcmCertificateArn("oooavlkhe")
+ .withCloudFrontDefaultCertificate(true)
+ .withIamCertificateId("orcqmznytymzmiqg")
+ .withMinimumProtocolVersion("fjodeffknxcdqfz")
+ .withSslSupportMethod("ceibl"))
+ .withWebAclId("oycfjrylckkuampmezlerj"))
+ .withDomainName("cwbirqnkovujza")
+ .withId("ud")
+ .withTags(Arrays.asList(
+ new TagAutoGenerated5().withKey("fakeTokenPlaceholder").withValue("eelgljsxedmzhdwwp"))))
+ .withPublicCloudConnectorsResourceId("quzwvcijedi")
+ .withAwsAccountId("npsedngekfchphqo")
+ .withArn("mlluf")
+ .withPublicCloudResourceName("uquecem")
+ .withAwsSourceSchema("nuhdditribzbvzfnixuibhjwyo")
+ .withAwsRegion("gumvgalmzjsgtlvv")
+ .withAwsTags(mapOf("key3003", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudFrontDistributions_Delete
+
+```java
+/**
+ * Samples for CloudFrontDistributions Delete.
+ */
+public final class CloudFrontDistributionsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFrontDistributions_Delete.json
+ */
+ /**
+ * Sample code: CloudFrontDistributions_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFrontDistributionsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFrontDistributions()
+ .delete("rgcloudFrontDistribution",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFrontDistributions_GetByResourceGroup
+
+```java
+/**
+ * Samples for CloudFrontDistributions GetByResourceGroup.
+ */
+public final class CloudFrontDistributionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFrontDistributions_Get.json
+ */
+ /**
+ * Sample code: CloudFrontDistributions_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudFrontDistributionsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFrontDistributions()
+ .getByResourceGroupWithResponse("rgcloudFrontDistribution",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFrontDistributions_List
+
+```java
+/**
+ * Samples for CloudFrontDistributions List.
+ */
+public final class CloudFrontDistributionsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFrontDistributions_ListBySubscription.json
+ */
+ /**
+ * Sample code: CloudFrontDistributions_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFrontDistributionsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFrontDistributions().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFrontDistributions_ListByResourceGroup
+
+```java
+/**
+ * Samples for CloudFrontDistributions ListByResourceGroup.
+ */
+public final class CloudFrontDistributionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFrontDistributions_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: CloudFrontDistributions_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFrontDistributionsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudFrontDistributions()
+ .listByResourceGroup("rgcloudFrontDistribution", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudFrontDistributions_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.CloudFrontDistribution;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudFrontDistributions Update.
+ */
+public final class CloudFrontDistributionsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudFrontDistributions_Update.json
+ */
+ /**
+ * Sample code: CloudFrontDistributions_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudFrontDistributionsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ CloudFrontDistribution resource = manager.cloudFrontDistributions()
+ .getByResourceGroupWithResponse("rgcloudFrontDistribution",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key3727", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudTrailTrails_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AdvancedEventSelector;
+import com.azure.resourcemanager.awsconnector.models.AdvancedFieldSelector;
+import com.azure.resourcemanager.awsconnector.models.AwsCloudTrailProperties;
+import com.azure.resourcemanager.awsconnector.models.CloudTrailProperties;
+import com.azure.resourcemanager.awsconnector.models.DataResource;
+import com.azure.resourcemanager.awsconnector.models.EventSelector;
+import com.azure.resourcemanager.awsconnector.models.EventSelectorReadWriteType;
+import com.azure.resourcemanager.awsconnector.models.InsightSelector;
+import com.azure.resourcemanager.awsconnector.models.Tag;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudTrailTrails CreateOrReplace.
+ */
+public final class CloudTrailTrailsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudTrailTrails_CreateOrReplace.json
+ */
+ /**
+ * Sample code: CloudTrailTrails_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudTrailTrailsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudTrailTrails()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("lectoohspiqh")
+ .withExistingResourceGroup("rgcloudTrailTrail")
+ .withTags(mapOf("key8112", "fakeTokenPlaceholder"))
+ .withProperties(
+ new CloudTrailProperties()
+ .withAwsProperties(new AwsCloudTrailProperties()
+ .withAdvancedEventSelectors(Arrays.asList(new AdvancedEventSelector()
+ .withFieldSelectors(
+ Arrays.asList(new AdvancedFieldSelector().withEndsWith(Arrays.asList("xvhm"))
+ .withEquals(Arrays.asList("wxznrgvwsjlxdvssmmse"))
+ .withField("mq")
+ .withNotEndsWith(Arrays.asList("x"))
+ .withNotEquals(Arrays.asList("vglmmoivfeqg"))
+ .withNotStartsWith(Arrays.asList("pojptcfcw"))
+ .withStartsWith(Arrays.asList("fvldfltesnmpieljtehsvxudvxdujk"))))
+ .withName("ee")))
+ .withArn("gbcn")
+ .withCloudWatchLogsLogGroupArn("nznfnuyxarmdmdtgjiougqgq")
+ .withCloudWatchLogsRoleArn("umhmpx")
+ .withEnableLogFileValidation(true)
+ .withEventSelectors(Arrays.asList(new EventSelector()
+ .withDataResources(Arrays.asList(new DataResource().withType("txxrjncwohiohorurqdxzabre")
+ .withValues(Arrays.asList("xhlnkujkbtpptbwchhh"))))
+ .withExcludeManagementEventSources(Arrays.asList("r"))
+ .withIncludeManagementEvents(true)
+ .withReadWriteType(EventSelectorReadWriteType.ALL)))
+ .withIncludeGlobalServiceEvents(true)
+ .withInsightSelectors(
+ Arrays.asList(new InsightSelector().withInsightType("brwlpasadlbwolsysta")))
+ .withIsLogging(true)
+ .withIsMultiRegionTrail(true)
+ .withIsOrganizationTrail(true)
+ .withKmsKeyId("fakeTokenPlaceholder")
+ .withS3BucketName("iknyfgvujttyxsralujehxb")
+ .withS3KeyPrefix("fakeTokenPlaceholder")
+ .withSnsTopicArn("owdxqmsrqylekull")
+ .withSnsTopicName("goknthoxfekdccclolilvnyacvcop")
+ .withTags(Arrays.asList(new Tag().withKey("fakeTokenPlaceholder").withValue("vnsgm")))
+ .withTrailName("oawneexezdnuouxdykllsflq"))
+ .withPublicCloudConnectorsResourceId("i")
+ .withAwsAccountId("mynelopf")
+ .withArn("jlwqroammottlyguyzu")
+ .withPublicCloudResourceName("aidwpmbkjspiucpvmzgg")
+ .withAwsSourceSchema("tvnaxpvricaiyoucpeauofeibwrk")
+ .withAwsRegion("dfvobbnupacpqsgexblxjlw")
+ .withAwsTags(mapOf("key5810", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudTrailTrails_Delete
+
+```java
+/**
+ * Samples for CloudTrailTrails Delete.
+ */
+public final class CloudTrailTrailsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudTrailTrails_Delete.json
+ */
+ /**
+ * Sample code: CloudTrailTrails_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudTrailTrailsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudTrailTrails()
+ .delete("rgcloudTrailTrail",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudTrailTrails_GetByResourceGroup
+
+```java
+/**
+ * Samples for CloudTrailTrails GetByResourceGroup.
+ */
+public final class CloudTrailTrailsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudTrailTrails_Get.json
+ */
+ /**
+ * Sample code: CloudTrailTrails_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudTrailTrailsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudTrailTrails()
+ .getByResourceGroupWithResponse("rgcloudTrailTrail",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudTrailTrails_List
+
+```java
+/**
+ * Samples for CloudTrailTrails List.
+ */
+public final class CloudTrailTrailsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudTrailTrails_ListBySubscription.json
+ */
+ /**
+ * Sample code: CloudTrailTrails_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudTrailTrailsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudTrailTrails().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudTrailTrails_ListByResourceGroup
+
+```java
+/**
+ * Samples for CloudTrailTrails ListByResourceGroup.
+ */
+public final class CloudTrailTrailsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudTrailTrails_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: CloudTrailTrails_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudTrailTrailsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudTrailTrails().listByResourceGroup("rgcloudTrailTrail", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudTrailTrails_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.CloudTrail;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudTrailTrails Update.
+ */
+public final class CloudTrailTrailsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudTrailTrails_Update.json
+ */
+ /**
+ * Sample code: CloudTrailTrails_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudTrailTrailsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ CloudTrail resource = manager.cloudTrailTrails()
+ .getByResourceGroupWithResponse("rgcloudTrailTrail",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1706", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudWatchAlarms_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsCloudWatchAlarmProperties;
+import com.azure.resourcemanager.awsconnector.models.CloudWatchAlarmProperties;
+import com.azure.resourcemanager.awsconnector.models.Dimension;
+import com.azure.resourcemanager.awsconnector.models.Metric;
+import com.azure.resourcemanager.awsconnector.models.MetricDataQuery;
+import com.azure.resourcemanager.awsconnector.models.MetricStat;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated6;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudWatchAlarms CreateOrReplace.
+ */
+public final class CloudWatchAlarmsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudWatchAlarms_CreateOrReplace.json
+ */
+ /**
+ * Sample code: CloudWatchAlarms_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudWatchAlarmsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudWatchAlarms()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("nbymldrgacokglzmyglynjohhnj")
+ .withExistingResourceGroup("rgcloudWatchAlarm")
+ .withTags(mapOf("key7594", "fakeTokenPlaceholder"))
+ .withProperties(
+ new CloudWatchAlarmProperties()
+ .withAwsProperties(
+ new AwsCloudWatchAlarmProperties().withActionsEnabled(true)
+ .withAlarmActions(Arrays.asList("ydnvbaggrnyxwzika"))
+ .withAlarmDescription("idvyiwmbllvlfvjcibommfbp")
+ .withAlarmName("ooriavzb")
+ .withArn("twsifnftkdrfzflvvsuka")
+ .withComparisonOperator("qo")
+ .withDatapointsToAlarm(30)
+ .withDimensions(
+ Arrays.asList(new Dimension().withName("bfnmnqiewf").withValue("lnphxdrevivdil")))
+ .withEvaluateLowSampleCountPercentile("oihpnjstsw")
+ .withEvaluationPeriods(15)
+ .withExtendedStatistic("czkqsxjyzryvvkzoshk")
+ .withInsufficientDataActions(Arrays.asList("dfkb"))
+ .withMetricName("bkdkskukix")
+ .withMetrics(
+ Arrays
+ .asList(
+ new MetricDataQuery().withAccountId("rbtogpxgrissdcvqupcuhqqesz")
+ .withExpression("hhxrpieqtbvafrujybxxa")
+ .withId("zcevmcxhujphx")
+ .withLabel("jmeaobrgk")
+ .withMetricStat(new MetricStat()
+ .withMetric(new Metric()
+ .withDimensions(Arrays.asList(new Dimension().withName("bfnmnqiewf")
+ .withValue("lnphxdrevivdil")))
+ .withMetricName("mabmwxjydr")
+ .withNamespace("wwoppcactqawdnkpxvjlo"))
+ .withPeriod(22)
+ .withStat("znmppqcobugvvlzccemylhxzsfsg")
+ .withUnit("vu"))
+ .withPeriod(27)
+ .withReturnData(true)))
+ .withNamespace("ptrnxovqoagxfepnjkpewbbusjkkzr")
+ .withOkActions(Arrays.asList("afskbnaohvdlb"))
+ .withPeriod(5)
+ .withStatistic("yrrnvsfpyvhnzlmw")
+ .withTags(Arrays
+ .asList(new TagAutoGenerated6().withKey("fakeTokenPlaceholder").withValue("zswuuw")))
+ .withThreshold(17.0F)
+ .withThresholdMetricId("sqtfzityufokpxbthucjitcljvo")
+ .withTreatMissingData("iqrbyvljxufjwybtkjc")
+ .withUnit("vbjipwqqaobwlyebv"))
+ .withPublicCloudConnectorsResourceId("upovlpslvvatbmxiuwhvj")
+ .withAwsAccountId("qcoqhrkbfdowqmkzarqbtwcprj")
+ .withArn("uhqszqzfmdpnmiwu")
+ .withPublicCloudResourceName("sjxcsoycs")
+ .withAwsSourceSchema("drehzmurfidpdlcf")
+ .withAwsRegion("afpgkhpukllavze")
+ .withAwsTags(mapOf("key6400", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CloudWatchAlarms_Delete
+
+```java
+/**
+ * Samples for CloudWatchAlarms Delete.
+ */
+public final class CloudWatchAlarmsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudWatchAlarms_Delete.json
+ */
+ /**
+ * Sample code: CloudWatchAlarms_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudWatchAlarmsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudWatchAlarms()
+ .delete("rgcloudWatchAlarm",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudWatchAlarms_GetByResourceGroup
+
+```java
+/**
+ * Samples for CloudWatchAlarms GetByResourceGroup.
+ */
+public final class CloudWatchAlarmsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudWatchAlarms_Get.json
+ */
+ /**
+ * Sample code: CloudWatchAlarms_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudWatchAlarmsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudWatchAlarms()
+ .getByResourceGroupWithResponse("rgcloudWatchAlarm",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudWatchAlarms_List
+
+```java
+/**
+ * Samples for CloudWatchAlarms List.
+ */
+public final class CloudWatchAlarmsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudWatchAlarms_ListBySubscription.json
+ */
+ /**
+ * Sample code: CloudWatchAlarms_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudWatchAlarmsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudWatchAlarms().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudWatchAlarms_ListByResourceGroup
+
+```java
+/**
+ * Samples for CloudWatchAlarms ListByResourceGroup.
+ */
+public final class CloudWatchAlarmsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudWatchAlarms_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: CloudWatchAlarms_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ cloudWatchAlarmsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.cloudWatchAlarms().listByResourceGroup("rgcloudWatchAlarm", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CloudWatchAlarms_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.CloudWatchAlarm;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CloudWatchAlarms Update.
+ */
+public final class CloudWatchAlarmsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CloudWatchAlarms_Update.json
+ */
+ /**
+ * Sample code: CloudWatchAlarms_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void cloudWatchAlarmsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ CloudWatchAlarm resource = manager.cloudWatchAlarms()
+ .getByResourceGroupWithResponse("rgcloudWatchAlarm",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key5472", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CodeBuildProjects_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ArtifactNamespace;
+import com.azure.resourcemanager.awsconnector.models.ArtifactNamespaceEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ArtifactPackaging;
+import com.azure.resourcemanager.awsconnector.models.ArtifactPackagingEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ArtifactsType;
+import com.azure.resourcemanager.awsconnector.models.ArtifactsTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.AwsCodeBuildProjectProperties;
+import com.azure.resourcemanager.awsconnector.models.BatchReportModeType;
+import com.azure.resourcemanager.awsconnector.models.BatchReportModeTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.BatchRestrictions;
+import com.azure.resourcemanager.awsconnector.models.BucketOwnerAccess;
+import com.azure.resourcemanager.awsconnector.models.BucketOwnerAccessEnumValue;
+import com.azure.resourcemanager.awsconnector.models.BuildStatusConfig;
+import com.azure.resourcemanager.awsconnector.models.CacheMode;
+import com.azure.resourcemanager.awsconnector.models.CacheType;
+import com.azure.resourcemanager.awsconnector.models.CacheTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.CloudWatchLogsConfig;
+import com.azure.resourcemanager.awsconnector.models.CodeBuildProjectProperties;
+import com.azure.resourcemanager.awsconnector.models.ComputeType;
+import com.azure.resourcemanager.awsconnector.models.ComputeTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.CredentialProviderType;
+import com.azure.resourcemanager.awsconnector.models.CredentialProviderTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.EnvironmentType;
+import com.azure.resourcemanager.awsconnector.models.EnvironmentTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.EnvironmentVariable;
+import com.azure.resourcemanager.awsconnector.models.EnvironmentVariableType;
+import com.azure.resourcemanager.awsconnector.models.EnvironmentVariableTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.FileSystemType;
+import com.azure.resourcemanager.awsconnector.models.FileSystemTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.FilterGroup;
+import com.azure.resourcemanager.awsconnector.models.GitSubmodulesConfig;
+import com.azure.resourcemanager.awsconnector.models.ImagePullCredentialsType;
+import com.azure.resourcemanager.awsconnector.models.ImagePullCredentialsTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.LogsConfig;
+import com.azure.resourcemanager.awsconnector.models.LogsConfigStatusType;
+import com.azure.resourcemanager.awsconnector.models.LogsConfigStatusTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ProjectArtifacts;
+import com.azure.resourcemanager.awsconnector.models.ProjectBadge;
+import com.azure.resourcemanager.awsconnector.models.ProjectBuildBatchConfig;
+import com.azure.resourcemanager.awsconnector.models.ProjectCache;
+import com.azure.resourcemanager.awsconnector.models.ProjectEnvironment;
+import com.azure.resourcemanager.awsconnector.models.ProjectFileSystemLocation;
+import com.azure.resourcemanager.awsconnector.models.ProjectFleet;
+import com.azure.resourcemanager.awsconnector.models.ProjectSource;
+import com.azure.resourcemanager.awsconnector.models.ProjectSourceVersion;
+import com.azure.resourcemanager.awsconnector.models.ProjectVisibilityType;
+import com.azure.resourcemanager.awsconnector.models.ProjectVisibilityTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.RegistryCredential;
+import com.azure.resourcemanager.awsconnector.models.S3LogsConfig;
+import com.azure.resourcemanager.awsconnector.models.SourceAuth;
+import com.azure.resourcemanager.awsconnector.models.SourceAuthType;
+import com.azure.resourcemanager.awsconnector.models.SourceAuthTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.SourceType;
+import com.azure.resourcemanager.awsconnector.models.SourceTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated7;
+import com.azure.resourcemanager.awsconnector.models.VpcConfig;
+import com.azure.resourcemanager.awsconnector.models.Webhook;
+import com.azure.resourcemanager.awsconnector.models.WebhookBuildType;
+import com.azure.resourcemanager.awsconnector.models.WebhookBuildTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.WebhookFilter;
+import com.azure.resourcemanager.awsconnector.models.WebhookFilterType;
+import com.azure.resourcemanager.awsconnector.models.WebhookFilterTypeEnumValue;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CodeBuildProjects CreateOrReplace.
+ */
+public final class CodeBuildProjectsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildProjects_CreateOrReplace.json
+ */
+ /**
+ * Sample code: CodeBuildProjects_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ codeBuildProjectsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildProjects()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("fpjpnhlms")
+ .withExistingResourceGroup("rgcodeBuildProject")
+ .withTags(mapOf("key4761", "fakeTokenPlaceholder"))
+ .withProperties(new CodeBuildProjectProperties()
+ .withAwsProperties(new AwsCodeBuildProjectProperties().withArn("wwhfeljvmnwnqcgxusgnvoq")
+ .withArtifacts(new ProjectArtifacts()
+ .withArtifactIdentifier("hcfdqzwleorpe")
+ .withBucketOwnerAccess(new BucketOwnerAccessEnumValue().withValue(BucketOwnerAccess.FULL))
+ .withEncryptionDisabled(true)
+ .withLocation("zvhsfl")
+ .withName("dsqyinskfvabyktgjbszny")
+ .withNamespaceType(new ArtifactNamespaceEnumValue().withValue(ArtifactNamespace.BUILD_ID))
+ .withOverrideArtifactName(true)
+ .withPackaging(new ArtifactPackagingEnumValue().withValue(ArtifactPackaging.NONE))
+ .withPath("zbsfhzkoet")
+ .withType(new ArtifactsTypeEnumValue().withValue(ArtifactsType.CODEPIPELINE)))
+ .withBadge(new ProjectBadge().withBadgeEnabled(true).withBadgeRequestUrl("ulpdsdbgtwm"))
+ .withBuildBatchConfig(new ProjectBuildBatchConfig()
+ .withBatchReportMode(
+ new BatchReportModeTypeEnumValue().withValue(BatchReportModeType.REPORT_AGGREGATED_BATCH))
+ .withCombineArtifacts(true)
+ .withRestrictions(
+ new BatchRestrictions().withComputeTypesAllowed(Arrays.asList("ievoltoldfrhkpv"))
+ .withMaximumBuildsAllowed(15))
+ .withServiceRole("lceqjutffrykpuzjxvijbzpames")
+ .withTimeoutInMins(3))
+ .withCache(new ProjectCache().withLocation("wgmqyjzlxsazecszvdkfr")
+ .withModes(Arrays.asList(CacheMode.LOCAL_CUSTOM_CACHE))
+ .withType(new CacheTypeEnumValue().withValue(CacheType.LOCAL)))
+ .withConcurrentBuildLimit(19)
+ .withCreated(OffsetDateTime.parse("2024-10-08T03:48:48.570Z"))
+ .withDescription("adnfxoh")
+ .withEncryptionKey("fakeTokenPlaceholder")
+ .withEnvironment(
+ new ProjectEnvironment().withCertificate("olzbdlydjqzkzlflzxcdjjjv")
+ .withComputeType(new ComputeTypeEnumValue().withValue(ComputeType.BUILD_GENERAL1_2XLARGE))
+ .withEnvironmentVariables(
+ Arrays.asList(new EnvironmentVariable().withName("bmzlnmjzuxrxeemxfutykrlvemt")
+ .withType(new EnvironmentVariableTypeEnumValue()
+ .withValue(EnvironmentVariableType.PARAMETER_STORE))
+ .withValue("eakfsmirkkwnizotyqqgmgjthn")))
+ .withFleet(new ProjectFleet().withFleetArn("brslcsjgupcpeistg"))
+ .withImage("kkmioknmuhxurahmnjg")
+ .withImagePullCredentialsType(
+ new ImagePullCredentialsTypeEnumValue().withValue(ImagePullCredentialsType.CODEBUILD))
+ .withPrivilegedMode(true)
+ .withRegistryCredential(new RegistryCredential().withCredential("fakeTokenPlaceholder")
+ .withCredentialProvider(new CredentialProviderTypeEnumValue()
+ .withValue(CredentialProviderType.SECRETS_MANAGER)))
+ .withType(new EnvironmentTypeEnumValue().withValue(EnvironmentType.ARM_CONTAINER)))
+ .withFileSystemLocations(Arrays.asList(new ProjectFileSystemLocation().withIdentifier("tdquc")
+ .withLocation("yeaotrzuhjtdtbfrlpvmlmaoqyioin")
+ .withMountOptions("tocdlorjekugjotphpxuyebjj")
+ .withMountPoint("fctmorvlmplsmeqvmavw")
+ .withType(new FileSystemTypeEnumValue().withValue(FileSystemType.EFS))))
+ .withLastModified(OffsetDateTime.parse("2024-10-08T03:48:48.571Z"))
+ .withLogsConfig(
+ new LogsConfig()
+ .withCloudWatchLogs(new CloudWatchLogsConfig().withGroupName("t")
+ .withStatus(
+ new LogsConfigStatusTypeEnumValue().withValue(LogsConfigStatusType.DISABLED))
+ .withStreamName("rrqzbaaicbiblat"))
+ .withS3Logs(new S3LogsConfig()
+ .withBucketOwnerAccess(
+ new BucketOwnerAccessEnumValue().withValue(BucketOwnerAccess.FULL))
+ .withEncryptionDisabled(true)
+ .withLocation("zuepwokmlymlvsvzjawzxe")
+ .withStatus(
+ new LogsConfigStatusTypeEnumValue().withValue(LogsConfigStatusType.DISABLED))))
+ .withName("budzhvktdvhxxy")
+ .withProjectVisibility(new ProjectVisibilityTypeEnumValue().withValue(
+ ProjectVisibilityType.PRIVATE))
+ .withPublicProjectAlias("vstmzamjxtasdipcehcuwvfef")
+ .withQueuedTimeoutInMinutes(30)
+ .withResourceAccessRole("st")
+ .withSecondaryArtifacts(Arrays.asList(new ProjectArtifacts().withArtifactIdentifier("hcfdqzwleorpe")
+ .withBucketOwnerAccess(new BucketOwnerAccessEnumValue().withValue(BucketOwnerAccess.FULL))
+ .withEncryptionDisabled(true)
+ .withLocation("zvhsfl")
+ .withName("dsqyinskfvabyktgjbszny")
+ .withNamespaceType(new ArtifactNamespaceEnumValue().withValue(ArtifactNamespace.BUILD_ID))
+ .withOverrideArtifactName(true)
+ .withPackaging(new ArtifactPackagingEnumValue().withValue(ArtifactPackaging.NONE))
+ .withPath("zbsfhzkoet")
+ .withType(new ArtifactsTypeEnumValue().withValue(ArtifactsType.CODEPIPELINE))))
+ .withSecondarySourceVersions(Arrays.asList(
+ new ProjectSourceVersion()
+ .withSourceIdentifier("kiyezlaophakaslamcsxpkzggoj")
+ .withSourceVersion("zy")))
+ .withSecondarySources(
+ Arrays
+ .asList(
+ new ProjectSource()
+ .withAuth(
+ new SourceAuth().withResource("oyfwquyzyjklbxlyjyddpmhmjgsgk")
+ .withType(new SourceAuthTypeEnumValue()
+ .withValue(SourceAuthType.CODECONNECTIONS)))
+ .withBuildStatusConfig(
+ new BuildStatusConfig().withContext("zoghbponrxfhugrjzdheibkada")
+ .withTargetUrl("ooonrchy"))
+ .withBuildspec("xxcoigvstisdhlfkfiblrgqhbtoqd")
+ .withGitCloneDepth(9)
+ .withGitSubmodulesConfig(new GitSubmodulesConfig().withFetchSubmodules(true))
+ .withInsecureSsl(true)
+ .withLocation("owijjqkiwwegfcrynqcypho")
+ .withReportBuildStatus(true)
+ .withSourceIdentifier("lnhelescdeif")
+ .withType(new SourceTypeEnumValue().withValue(SourceType.BITBUCKET))))
+ .withServiceRole("pydzdifzkz")
+ .withSource(new ProjectSource()
+ .withAuth(new SourceAuth().withResource("oyfwquyzyjklbxlyjyddpmhmjgsgk")
+ .withType(new SourceAuthTypeEnumValue().withValue(SourceAuthType.CODECONNECTIONS)))
+ .withBuildStatusConfig(
+ new BuildStatusConfig().withContext("zoghbponrxfhugrjzdheibkada").withTargetUrl("ooonrchy"))
+ .withBuildspec("xxcoigvstisdhlfkfiblrgqhbtoqd")
+ .withGitCloneDepth(9)
+ .withGitSubmodulesConfig(new GitSubmodulesConfig().withFetchSubmodules(true))
+ .withInsecureSsl(true)
+ .withLocation("owijjqkiwwegfcrynqcypho")
+ .withReportBuildStatus(true)
+ .withSourceIdentifier("lnhelescdeif")
+ .withType(new SourceTypeEnumValue().withValue(SourceType.BITBUCKET)))
+ .withSourceVersion("idpngofzedxghp")
+ .withTags(Arrays
+ .asList(new TagAutoGenerated7().withKey("fakeTokenPlaceholder").withValue("iqwximmqwgsjlwdgv")))
+ .withTimeoutInMinutes(7)
+ .withVpcConfig(new VpcConfig()
+ .withSecurityGroupIds(Arrays.asList("gcsqntkatjbigzj"))
+ .withSubnets(Arrays.asList("vxxzlquh"))
+ .withVpcId("dhjvrtrqgdb"))
+ .withWebhook(
+ new Webhook().withBranchFilter("fpfnqs")
+ .withBuildType(new WebhookBuildTypeEnumValue().withValue(WebhookBuildType.BUILD))
+ .withFilterGroups(Arrays.asList(
+ new FilterGroup().withWebhookFilter(new WebhookFilter().withExcludeMatchedPattern(true)
+ .withPattern("ozqghxeblvksllu")
+ .withType(new WebhookFilterTypeEnumValue()
+ .withValue(WebhookFilterType.ACTOR_ACCOUNT_ID)))))
+ .withLastModifiedSecret(OffsetDateTime.parse("2024-10-08T03:48:48.574Z"))
+ .withPayloadUrl("wzalmmzopccsfbgwhxjneakxazu")
+ .withSecret("fakeTokenPlaceholder")
+ .withUrl("lwkywiwhmmdrirvajnxo")))
+ .withPublicCloudConnectorsResourceId("azzcclgcodhtl")
+ .withAwsAccountId("caiac")
+ .withArn("ae")
+ .withPublicCloudResourceName("tzylnhhjwtzngucgrkvklav")
+ .withAwsSourceSchema("ujnztglujzqehsvvd")
+ .withAwsRegion("rakioiwqsjhpjqekyjft")
+ .withAwsTags(mapOf("key9822", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CodeBuildProjects_Delete
+
+```java
+/**
+ * Samples for CodeBuildProjects Delete.
+ */
+public final class CodeBuildProjectsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildProjects_Delete.json
+ */
+ /**
+ * Sample code: CodeBuildProjects_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void codeBuildProjectsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildProjects()
+ .delete("rgcodeBuildProject",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CodeBuildProjects_GetByResourceGroup
+
+```java
+/**
+ * Samples for CodeBuildProjects GetByResourceGroup.
+ */
+public final class CodeBuildProjectsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildProjects_Get.json
+ */
+ /**
+ * Sample code: CodeBuildProjects_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void codeBuildProjectsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildProjects()
+ .getByResourceGroupWithResponse("rgcodeBuildProject",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CodeBuildProjects_List
+
+```java
+/**
+ * Samples for CodeBuildProjects List.
+ */
+public final class CodeBuildProjectsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildProjects_ListBySubscription.json
+ */
+ /**
+ * Sample code: CodeBuildProjects_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ codeBuildProjectsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildProjects().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CodeBuildProjects_ListByResourceGroup
+
+```java
+/**
+ * Samples for CodeBuildProjects ListByResourceGroup.
+ */
+public final class CodeBuildProjectsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildProjects_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: CodeBuildProjects_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ codeBuildProjectsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildProjects().listByResourceGroup("rgcodeBuildProject", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CodeBuildProjects_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.CodeBuildProject;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CodeBuildProjects Update.
+ */
+public final class CodeBuildProjectsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildProjects_Update.json
+ */
+ /**
+ * Sample code: CodeBuildProjects_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void codeBuildProjectsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ CodeBuildProject resource = manager.codeBuildProjects()
+ .getByResourceGroupWithResponse("rgcodeBuildProject",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key2639", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CodeBuildSourceCredentialsInfos_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AuthType;
+import com.azure.resourcemanager.awsconnector.models.AuthTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.AwsCodeBuildSourceCredentialsInfoProperties;
+import com.azure.resourcemanager.awsconnector.models.CodeBuildSourceCredentialsInfoProperties;
+import com.azure.resourcemanager.awsconnector.models.ServerType;
+import com.azure.resourcemanager.awsconnector.models.ServerTypeEnumValue;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CodeBuildSourceCredentialsInfos CreateOrReplace.
+ */
+public final class CodeBuildSourceCredentialsInfosCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildSourceCredentialsInfos_CreateOrReplace.json
+ */
+ /**
+ * Sample code: CodeBuildSourceCredentialsInfos_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void codeBuildSourceCredentialsInfosCreateOrReplace(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildSourceCredentialsInfos()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("ckmgfv")
+ .withExistingResourceGroup("rgcodeBuildSourceCredentialsInfo")
+ .withTags(mapOf("key9473", "fakeTokenPlaceholder"))
+ .withProperties(new CodeBuildSourceCredentialsInfoProperties()
+ .withAwsProperties(new AwsCodeBuildSourceCredentialsInfoProperties().withArn("ewe")
+ .withAuthType(new AuthTypeEnumValue().withValue(AuthType.BASIC_AUTH))
+ .withResource("cnzfvgfcneqgffgfclggx")
+ .withServerType(new ServerTypeEnumValue().withValue(ServerType.BITBUCKET)))
+ .withPublicCloudConnectorsResourceId("cidijgvkoos")
+ .withAwsAccountId("bgwhzakphzjipkxqwy")
+ .withArn("wdxdkxuukdnrlpqgkmmvfagzrwom")
+ .withPublicCloudResourceName("uazcojlwlavznbfsrjzbtthat")
+ .withAwsSourceSchema("rhibtnvrfkidnqhyynub")
+ .withAwsRegion("vywlxfetnso")
+ .withAwsTags(mapOf("key3224", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### CodeBuildSourceCredentialsInfos_Delete
+
+```java
+/**
+ * Samples for CodeBuildSourceCredentialsInfos Delete.
+ */
+public final class CodeBuildSourceCredentialsInfosDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildSourceCredentialsInfos_Delete.json
+ */
+ /**
+ * Sample code: CodeBuildSourceCredentialsInfos_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ codeBuildSourceCredentialsInfosDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildSourceCredentialsInfos()
+ .delete("rgcodeBuildSourceCredentialsInfo",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CodeBuildSourceCredentialsInfos_GetByResourceGroup
+
+```java
+/**
+ * Samples for CodeBuildSourceCredentialsInfos GetByResourceGroup.
+ */
+public final class CodeBuildSourceCredentialsInfosGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildSourceCredentialsInfos_Get.json
+ */
+ /**
+ * Sample code: CodeBuildSourceCredentialsInfos_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ codeBuildSourceCredentialsInfosGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildSourceCredentialsInfos()
+ .getByResourceGroupWithResponse("rgcodeBuildSourceCredentialsInfo",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CodeBuildSourceCredentialsInfos_List
+
+```java
+/**
+ * Samples for CodeBuildSourceCredentialsInfos List.
+ */
+public final class CodeBuildSourceCredentialsInfosListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildSourceCredentialsInfos_ListBySubscription.json
+ */
+ /**
+ * Sample code: CodeBuildSourceCredentialsInfos_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void codeBuildSourceCredentialsInfosListBySubscription(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildSourceCredentialsInfos().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CodeBuildSourceCredentialsInfos_ListByResourceGroup
+
+```java
+/**
+ * Samples for CodeBuildSourceCredentialsInfos ListByResourceGroup.
+ */
+public final class CodeBuildSourceCredentialsInfosListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildSourceCredentialsInfos_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: CodeBuildSourceCredentialsInfos_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void codeBuildSourceCredentialsInfosListByResourceGroup(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.codeBuildSourceCredentialsInfos()
+ .listByResourceGroup("rgcodeBuildSourceCredentialsInfo", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CodeBuildSourceCredentialsInfos_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.CodeBuildSourceCredentialsInfo;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for CodeBuildSourceCredentialsInfos Update.
+ */
+public final class CodeBuildSourceCredentialsInfosUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * CodeBuildSourceCredentialsInfos_Update.json
+ */
+ /**
+ * Sample code: CodeBuildSourceCredentialsInfos_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ codeBuildSourceCredentialsInfosUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ CodeBuildSourceCredentialsInfo resource = manager.codeBuildSourceCredentialsInfos()
+ .getByResourceGroupWithResponse("rgcodeBuildSourceCredentialsInfo",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key7809", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorderStatuses_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsConfigServiceConfigurationRecorderStatusProperties;
+import com.azure.resourcemanager.awsconnector.models.ConfigServiceConfigurationRecorderStatusProperties;
+import com.azure.resourcemanager.awsconnector.models.RecorderStatus;
+import com.azure.resourcemanager.awsconnector.models.RecorderStatusEnumValue;
+import java.time.OffsetDateTime;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ConfigServiceConfigurationRecorderStatuses CreateOrReplace.
+ */
+public final class ConfigServiceConfigurationRecorderStatusesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorderStatuses_CreateOrReplace.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorderStatuses_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecorderStatusesCreateOrReplace(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorderStatuses()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("aanagogcqgqikndwcsiwpf")
+ .withExistingResourceGroup("rgconfigServiceConfigurationRecorderStatus")
+ .withTags(mapOf("key333", "fakeTokenPlaceholder"))
+ .withProperties(new ConfigServiceConfigurationRecorderStatusProperties()
+ .withAwsProperties(new AwsConfigServiceConfigurationRecorderStatusProperties()
+ .withLastErrorCode("fakeTokenPlaceholder")
+ .withLastErrorMessage("qcopqdjuuwuwdvdjmupwgrnxux")
+ .withLastStartTime(OffsetDateTime.parse("2024-10-08T03:54:51.026Z"))
+ .withLastStatus(new RecorderStatusEnumValue().withValue(RecorderStatus.FAILURE))
+ .withLastStatusChangeTime(OffsetDateTime.parse("2024-10-08T03:54:51.038Z"))
+ .withLastStopTime(OffsetDateTime.parse("2024-10-08T03:54:51.038Z"))
+ .withName("mvnralcjhhrhhczxctukeumhnhhsvs")
+ .withRecording(true))
+ .withPublicCloudConnectorsResourceId("fzembqicafznmnrvzudikggimnls")
+ .withAwsAccountId("dnnbcuuhaxys")
+ .withArn("iwxslgken")
+ .withPublicCloudResourceName("stvqbbbupeyrxdfrdlslkxbi")
+ .withAwsSourceSchema("qprhkzdetwvsaznwugwruaned")
+ .withAwsRegion("pffplccggyknjkyebtjepdzwbim")
+ .withAwsTags(mapOf("key2618", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorderStatuses_Delete
+
+```java
+/**
+ * Samples for ConfigServiceConfigurationRecorderStatuses Delete.
+ */
+public final class ConfigServiceConfigurationRecorderStatusesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorderStatuses_Delete.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorderStatuses_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecorderStatusesDelete(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorderStatuses()
+ .delete("rgconfigServiceConfigurationRecorderStatus",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorderStatuses_GetByResourceGroup
+
+```java
+/**
+ * Samples for ConfigServiceConfigurationRecorderStatuses GetByResourceGroup.
+ */
+public final class ConfigServiceConfigurationRecorderStatusesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorderStatuses_Get.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorderStatuses_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecorderStatusesGet(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorderStatuses()
+ .getByResourceGroupWithResponse("rgconfigServiceConfigurationRecorderStatus",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorderStatuses_List
+
+```java
+/**
+ * Samples for ConfigServiceConfigurationRecorderStatuses List.
+ */
+public final class ConfigServiceConfigurationRecorderStatusesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorderStatuses_ListBySubscription.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorderStatuses_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecorderStatusesListBySubscription(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorderStatuses().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorderStatuses_ListByResourceGroup
+
+```java
+/**
+ * Samples for ConfigServiceConfigurationRecorderStatuses ListByResourceGroup.
+ */
+public final class ConfigServiceConfigurationRecorderStatusesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorderStatuses_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorderStatuses_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecorderStatusesListByResourceGroup(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorderStatuses()
+ .listByResourceGroup("rgconfigServiceConfigurationRecorderStatus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorderStatuses_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ConfigServiceConfigurationRecorderStatus;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ConfigServiceConfigurationRecorderStatuses Update.
+ */
+public final class ConfigServiceConfigurationRecorderStatusesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorderStatuses_Update.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorderStatuses_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecorderStatusesUpdate(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ ConfigServiceConfigurationRecorderStatus resource = manager.configServiceConfigurationRecorderStatuses()
+ .getByResourceGroupWithResponse("rgconfigServiceConfigurationRecorderStatus",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key4598", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorders_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsConfigServiceConfigurationRecorderProperties;
+import com.azure.resourcemanager.awsconnector.models.ConfigServiceConfigurationRecorderProperties;
+import com.azure.resourcemanager.awsconnector.models.ExclusionByResourceTypes;
+import com.azure.resourcemanager.awsconnector.models.RecordingFrequency;
+import com.azure.resourcemanager.awsconnector.models.RecordingFrequencyEnumValue;
+import com.azure.resourcemanager.awsconnector.models.RecordingGroup;
+import com.azure.resourcemanager.awsconnector.models.RecordingMode;
+import com.azure.resourcemanager.awsconnector.models.RecordingModeOverride;
+import com.azure.resourcemanager.awsconnector.models.RecordingStrategy;
+import com.azure.resourcemanager.awsconnector.models.RecordingStrategyType;
+import com.azure.resourcemanager.awsconnector.models.RecordingStrategyTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ResourceType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ConfigServiceConfigurationRecorders CreateOrReplace.
+ */
+public final class ConfigServiceConfigurationRecordersCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorders_CreateOrReplace.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorders_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecordersCreateOrReplace(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorders()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("uhzzvapzjrmbzxfxdqyczgmcq")
+ .withExistingResourceGroup("rgconfigServiceConfigurationRecorder")
+ .withTags(mapOf("key1719", "fakeTokenPlaceholder"))
+ .withProperties(new ConfigServiceConfigurationRecorderProperties()
+ .withAwsProperties(new AwsConfigServiceConfigurationRecorderProperties().withName("umkcdjmciwgorjwxtm")
+ .withRecordingGroup(new RecordingGroup().withAllSupported(true)
+ .withExclusionByResourceTypes(new ExclusionByResourceTypes()
+ .withResourceTypes(Arrays.asList(ResourceType.AWS_ACM_CERTIFICATE)))
+ .withIncludeGlobalResourceTypes(true)
+ .withRecordingStrategy(new RecordingStrategy().withUseOnly(new RecordingStrategyTypeEnumValue()
+ .withValue(RecordingStrategyType.ALL_SUPPORTED_RESOURCE_TYPES)))
+ .withResourceTypes(Arrays.asList(ResourceType.AWS_ACM_CERTIFICATE)))
+ .withRecordingMode(new RecordingMode()
+ .withRecordingFrequency(
+ new RecordingFrequencyEnumValue().withValue(RecordingFrequency.CONTINUOUS))
+ .withRecordingModeOverrides(
+ Arrays.asList(new RecordingModeOverride().withDescription("fxclcxlsumaur")
+ .withRecordingFrequency(
+ new RecordingFrequencyEnumValue().withValue(RecordingFrequency.CONTINUOUS))
+ .withResourceTypes(Arrays.asList(ResourceType.AWS_ACM_CERTIFICATE)))))
+ .withRoleArn("alfppyafyrtgacngfxckcioci"))
+ .withPublicCloudConnectorsResourceId("ofuen")
+ .withAwsAccountId("pxxfgnveimxacjnvjtionuq")
+ .withArn("jdsihdzklcqjurvrxp")
+ .withPublicCloudResourceName("sieljn")
+ .withAwsSourceSchema("eolodykekuepfruwphifvo")
+ .withAwsRegion("xvzbwkxfmww")
+ .withAwsTags(mapOf("key7810", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorders_Delete
+
+```java
+/**
+ * Samples for ConfigServiceConfigurationRecorders Delete.
+ */
+public final class ConfigServiceConfigurationRecordersDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorders_Delete.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorders_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ configServiceConfigurationRecordersDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorders()
+ .delete("rgconfigServiceConfigurationRecorder",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorders_GetByResourceGroup
+
+```java
+/**
+ * Samples for ConfigServiceConfigurationRecorders GetByResourceGroup.
+ */
+public final class ConfigServiceConfigurationRecordersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorders_Get.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorders_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ configServiceConfigurationRecordersGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorders()
+ .getByResourceGroupWithResponse("rgconfigServiceConfigurationRecorder",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorders_List
+
+```java
+/**
+ * Samples for ConfigServiceConfigurationRecorders List.
+ */
+public final class ConfigServiceConfigurationRecordersListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorders_ListBySubscription.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorders_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecordersListBySubscription(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorders().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorders_ListByResourceGroup
+
+```java
+/**
+ * Samples for ConfigServiceConfigurationRecorders ListByResourceGroup.
+ */
+public final class ConfigServiceConfigurationRecordersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorders_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorders_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceConfigurationRecordersListByResourceGroup(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceConfigurationRecorders()
+ .listByResourceGroup("rgconfigServiceConfigurationRecorder", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceConfigurationRecorders_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ConfigServiceConfigurationRecorder;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ConfigServiceConfigurationRecorders Update.
+ */
+public final class ConfigServiceConfigurationRecordersUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceConfigurationRecorders_Update.json
+ */
+ /**
+ * Sample code: ConfigServiceConfigurationRecorders_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ configServiceConfigurationRecordersUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ ConfigServiceConfigurationRecorder resource = manager.configServiceConfigurationRecorders()
+ .getByResourceGroupWithResponse("rgconfigServiceConfigurationRecorder",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key455", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConfigServiceDeliveryChannels_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsConfigServiceDeliveryChannelProperties;
+import com.azure.resourcemanager.awsconnector.models.ConfigServiceDeliveryChannelProperties;
+import com.azure.resourcemanager.awsconnector.models.ConfigSnapshotDeliveryProperties;
+import com.azure.resourcemanager.awsconnector.models.MaximumExecutionFrequency;
+import com.azure.resourcemanager.awsconnector.models.MaximumExecutionFrequencyEnumValue;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ConfigServiceDeliveryChannels CreateOrReplace.
+ */
+public final class ConfigServiceDeliveryChannelsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceDeliveryChannels_CreateOrReplace.json
+ */
+ /**
+ * Sample code: ConfigServiceDeliveryChannels_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceDeliveryChannelsCreateOrReplace(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceDeliveryChannels()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("djcnfaicagptxk")
+ .withExistingResourceGroup("rgconfigServiceDeliveryChannel")
+ .withTags(mapOf("key6889", "fakeTokenPlaceholder"))
+ .withProperties(new ConfigServiceDeliveryChannelProperties()
+ .withAwsProperties(new AwsConfigServiceDeliveryChannelProperties()
+ .withConfigSnapshotDeliveryProperties(new ConfigSnapshotDeliveryProperties().withDeliveryFrequency(
+ new MaximumExecutionFrequencyEnumValue().withValue(MaximumExecutionFrequency.ONE_HOUR)))
+ .withName("pfdwjyiaypjjedltuphpz")
+ .withS3BucketName("kcgtpxhibekwygxkybv")
+ .withS3KeyPrefix("fakeTokenPlaceholder")
+ .withS3KmsKeyArn("fakeTokenPlaceholder")
+ .withSnsTopicArn("qsxejnowkzljayrlhzyyppaya"))
+ .withPublicCloudConnectorsResourceId("kzdkfyjjgkoolslydcmbms")
+ .withAwsAccountId("xiyydxsyykydvymn")
+ .withArn("eevsmaokvzzbqwpfm")
+ .withPublicCloudResourceName("idxxguxjmvrzjnruzz")
+ .withAwsSourceSchema("ged")
+ .withAwsRegion("kngfw")
+ .withAwsTags(mapOf("key5086", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConfigServiceDeliveryChannels_Delete
+
+```java
+/**
+ * Samples for ConfigServiceDeliveryChannels Delete.
+ */
+public final class ConfigServiceDeliveryChannelsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceDeliveryChannels_Delete.json
+ */
+ /**
+ * Sample code: ConfigServiceDeliveryChannels_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ configServiceDeliveryChannelsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceDeliveryChannels()
+ .delete("rgconfigServiceDeliveryChannel",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceDeliveryChannels_GetByResourceGroup
+
+```java
+/**
+ * Samples for ConfigServiceDeliveryChannels GetByResourceGroup.
+ */
+public final class ConfigServiceDeliveryChannelsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceDeliveryChannels_Get.json
+ */
+ /**
+ * Sample code: ConfigServiceDeliveryChannels_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ configServiceDeliveryChannelsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceDeliveryChannels()
+ .getByResourceGroupWithResponse("rgconfigServiceDeliveryChannel",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceDeliveryChannels_List
+
+```java
+/**
+ * Samples for ConfigServiceDeliveryChannels List.
+ */
+public final class ConfigServiceDeliveryChannelsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceDeliveryChannels_ListBySubscription.json
+ */
+ /**
+ * Sample code: ConfigServiceDeliveryChannels_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceDeliveryChannelsListBySubscription(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceDeliveryChannels().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceDeliveryChannels_ListByResourceGroup
+
+```java
+/**
+ * Samples for ConfigServiceDeliveryChannels ListByResourceGroup.
+ */
+public final class ConfigServiceDeliveryChannelsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceDeliveryChannels_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: ConfigServiceDeliveryChannels_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void configServiceDeliveryChannelsListByResourceGroup(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.configServiceDeliveryChannels()
+ .listByResourceGroup("rgconfigServiceDeliveryChannel", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConfigServiceDeliveryChannels_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ConfigServiceDeliveryChannel;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ConfigServiceDeliveryChannels Update.
+ */
+public final class ConfigServiceDeliveryChannelsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * ConfigServiceDeliveryChannels_Update.json
+ */
+ /**
+ * Sample code: ConfigServiceDeliveryChannels_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ configServiceDeliveryChannelsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ ConfigServiceDeliveryChannel resource = manager.configServiceDeliveryChannels()
+ .getByResourceGroupWithResponse("rgconfigServiceDeliveryChannel",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key7397", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DatabaseMigrationServiceReplicationInstances_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AvailabilityZone;
+import com.azure.resourcemanager.awsconnector.models.AwsDatabaseMigrationServiceReplicationInstanceProperties;
+import com.azure.resourcemanager.awsconnector.models.DatabaseMigrationServiceReplicationInstanceProperties;
+import com.azure.resourcemanager.awsconnector.models.ReplicationPendingModifiedValues;
+import com.azure.resourcemanager.awsconnector.models.ReplicationSubnetGroup;
+import com.azure.resourcemanager.awsconnector.models.Subnet;
+import com.azure.resourcemanager.awsconnector.models.VpcSecurityGroupMembership;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DatabaseMigrationServiceReplicationInstances CreateOrReplace.
+ */
+public final class DatabaseMigrationServiceReplicationInstancesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DatabaseMigrationServiceReplicationInstances_CreateOrReplace.json
+ */
+ /**
+ * Sample code: DatabaseMigrationServiceReplicationInstances_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void databaseMigrationServiceReplicationInstancesCreateOrReplace(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.databaseMigrationServiceReplicationInstances()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("pkvlgucpnkkigflvahztr")
+ .withExistingResourceGroup("rgdatabaseMigrationServiceReplicationInstance")
+ .withTags(mapOf("key2694", "fakeTokenPlaceholder"))
+ .withProperties(
+ new DatabaseMigrationServiceReplicationInstanceProperties()
+ .withAwsProperties(
+ new AwsDatabaseMigrationServiceReplicationInstanceProperties().withAllocatedStorage(15)
+ .withAutoMinorVersionUpgrade(true)
+ .withAvailabilityZone("ufwkddqfhigljgpouncfjtwjhcm")
+ .withDnsNameServers("gjlforgdkkjubyetzafznct")
+ .withEngineVersion("ugfhxgag")
+ .withFreeUntil(OffsetDateTime.parse("2024-10-08T03:53:04.775Z"))
+ .withInstanceCreateTime(OffsetDateTime.parse("2024-10-08T03:53:04.776Z"))
+ .withKmsKeyId("fakeTokenPlaceholder")
+ .withMultiAZ(true)
+ .withNetworkType("ognalkhwgr")
+ .withPendingModifiedValues(new ReplicationPendingModifiedValues().withAllocatedStorage(24)
+ .withEngineVersion("ljjlnnkamqo")
+ .withMultiAZ(true)
+ .withNetworkType("xgynwurnwuqfirccmedvhphptwx")
+ .withReplicationInstanceClass("nah"))
+ .withPreferredMaintenanceWindow("cjhj")
+ .withPubliclyAccessible(true)
+ .withReplicationInstanceArn("kkuagugx")
+ .withReplicationInstanceClass("nrejgjvmp")
+ .withReplicationInstanceIdentifier("kmkhuvkgshmfnqrkh")
+ .withReplicationInstanceIpv6Addresses(Arrays.asList("chankbhtkfgmmql"))
+ .withReplicationInstancePrivateIpAddress("kzpeupvtv")
+ .withReplicationInstancePrivateIpAddresses(Arrays.asList("wpvurjepdvyqsut"))
+ .withReplicationInstancePublicIpAddress("cgolgdimqmrtbs")
+ .withReplicationInstancePublicIpAddresses(Arrays.asList("laguuyhnutmqr"))
+ .withReplicationInstanceStatus("prkwehbwglimljckrujss")
+ .withReplicationSubnetGroup(new ReplicationSubnetGroup()
+ .withReplicationSubnetGroupDescription("octprj")
+ .withReplicationSubnetGroupIdentifier("lp")
+ .withSubnetGroupStatus("u")
+ .withSubnets(Arrays.asList(new Subnet()
+ .withSubnetAvailabilityZone(new AvailabilityZone().withName("zkqyndrxrxjgvbcwycfd"))
+ .withSubnetIdentifier("bbjyuchlt")
+ .withSubnetStatus("pzsp")))
+ .withSupportedNetworkTypes(Arrays.asList("flrojgbtzlv"))
+ .withVpcId("zsg"))
+ .withSecondaryAvailabilityZone("gfricycigffhmqcwzxxzwevrwf")
+ .withVpcSecurityGroups(Arrays.asList(new VpcSecurityGroupMembership().withStatus("tioerjd")
+ .withVpcSecurityGroupId("szupfofnwyrfpcpwi"))))
+ .withPublicCloudConnectorsResourceId("oafkmlxerdytgq")
+ .withAwsAccountId("zkpbtrjskcsejrxvaulidr")
+ .withArn("hgieneplknqcgzbvoj")
+ .withPublicCloudResourceName("ajrdejnsykvcfzomaktse")
+ .withAwsSourceSchema("aj")
+ .withAwsRegion("xflnvjqertqoawntyvmyorzemmx")
+ .withAwsTags(mapOf("key1826", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DatabaseMigrationServiceReplicationInstances_Delete
+
+```java
+/**
+ * Samples for DatabaseMigrationServiceReplicationInstances Delete.
+ */
+public final class DatabaseMigrationServiceReplicationInstancesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DatabaseMigrationServiceReplicationInstances_Delete.json
+ */
+ /**
+ * Sample code: DatabaseMigrationServiceReplicationInstances_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void databaseMigrationServiceReplicationInstancesDelete(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.databaseMigrationServiceReplicationInstances()
+ .delete("rgdatabaseMigrationServiceReplicationInstance",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DatabaseMigrationServiceReplicationInstances_GetByResourceGroup
+
+```java
+/**
+ * Samples for DatabaseMigrationServiceReplicationInstances GetByResourceGroup.
+ */
+public final class DatabaseMigrationServiceReplicationInstancesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DatabaseMigrationServiceReplicationInstances_Get.json
+ */
+ /**
+ * Sample code: DatabaseMigrationServiceReplicationInstances_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void databaseMigrationServiceReplicationInstancesGet(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.databaseMigrationServiceReplicationInstances()
+ .getByResourceGroupWithResponse("rgdatabaseMigrationServiceReplicationInstance",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DatabaseMigrationServiceReplicationInstances_List
+
+```java
+/**
+ * Samples for DatabaseMigrationServiceReplicationInstances List.
+ */
+public final class DatabaseMigrationServiceReplicationInstancesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DatabaseMigrationServiceReplicationInstances_ListBySubscription.json
+ */
+ /**
+ * Sample code: DatabaseMigrationServiceReplicationInstances_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void databaseMigrationServiceReplicationInstancesListBySubscription(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.databaseMigrationServiceReplicationInstances().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DatabaseMigrationServiceReplicationInstances_ListByResourceGroup
+
+```java
+/**
+ * Samples for DatabaseMigrationServiceReplicationInstances ListByResourceGroup.
+ */
+public final class DatabaseMigrationServiceReplicationInstancesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DatabaseMigrationServiceReplicationInstances_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: DatabaseMigrationServiceReplicationInstances_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void databaseMigrationServiceReplicationInstancesListByResourceGroup(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.databaseMigrationServiceReplicationInstances()
+ .listByResourceGroup("rgdatabaseMigrationServiceReplicationInstance", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DatabaseMigrationServiceReplicationInstances_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.DatabaseMigrationServiceReplicationInstance;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DatabaseMigrationServiceReplicationInstances Update.
+ */
+public final class DatabaseMigrationServiceReplicationInstancesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DatabaseMigrationServiceReplicationInstances_Update.json
+ */
+ /**
+ * Sample code: DatabaseMigrationServiceReplicationInstances_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void databaseMigrationServiceReplicationInstancesUpdate(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ DatabaseMigrationServiceReplicationInstance resource = manager.databaseMigrationServiceReplicationInstances()
+ .getByResourceGroupWithResponse("rgdatabaseMigrationServiceReplicationInstance",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key4401", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DaxClusters_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsDaxClusterProperties;
+import com.azure.resourcemanager.awsconnector.models.ClusterEndpointEncryptionType;
+import com.azure.resourcemanager.awsconnector.models.ClusterEndpointEncryptionTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.DaxClusterProperties;
+import com.azure.resourcemanager.awsconnector.models.Endpoint;
+import com.azure.resourcemanager.awsconnector.models.Node;
+import com.azure.resourcemanager.awsconnector.models.NotificationConfigurationAutoGenerated;
+import com.azure.resourcemanager.awsconnector.models.ParameterGroupStatus;
+import com.azure.resourcemanager.awsconnector.models.SecurityGroupMembership;
+import com.azure.resourcemanager.awsconnector.models.SseDescription;
+import com.azure.resourcemanager.awsconnector.models.SseStatus;
+import com.azure.resourcemanager.awsconnector.models.SseStatusEnumValue;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DaxClusters CreateOrReplace.
+ */
+public final class DaxClustersCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DaxClusters_CreateOrReplace.json
+ */
+ /**
+ * Sample code: DaxClusters_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void daxClustersCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.daxClusters()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("vmw")
+ .withExistingResourceGroup("rgdaxCluster")
+ .withTags(mapOf("key1674", "fakeTokenPlaceholder"))
+ .withProperties(new DaxClusterProperties()
+ .withAwsProperties(new AwsDaxClusterProperties().withActiveNodes(18)
+ .withClusterArn("drxcjkivmlrtslbwoykkohay")
+ .withClusterDiscoveryEndpoint(new Endpoint().withAddress("piabfnkoscysceufovcpffxl")
+ .withPort(13)
+ .withUrl("bcwzfeebgdzlvoafvyddknwzaih"))
+ .withClusterEndpointEncryptionType(
+ new ClusterEndpointEncryptionTypeEnumValue().withValue(ClusterEndpointEncryptionType.NONE))
+ .withClusterName("zobzejccpfjaqcvzutazmzjbl")
+ .withDescription("q")
+ .withIamRoleArn("epmvlmhygrgjvx")
+ .withNodeIdsToRemove(Arrays.asList("uzzbmymlnrssuuqf"))
+ .withNodeType("vwyypkakaevefciygrniikfpyul")
+ .withNodes(Arrays.asList(new Node().withAvailabilityZone("j")
+ .withEndpoint(new Endpoint().withAddress("piabfnkoscysceufovcpffxl")
+ .withPort(13)
+ .withUrl("bcwzfeebgdzlvoafvyddknwzaih"))
+ .withNodeCreateTime(OffsetDateTime.parse("2024-10-08T03:51:45.186Z"))
+ .withNodeId("stfvsn")
+ .withNodeStatus("cvxigvbkflormrnhzzjp")
+ .withParameterGroupStatus("ywehlocxyzqprjzljpwluyd")))
+ .withNotificationConfiguration(
+ new NotificationConfigurationAutoGenerated().withTopicArn("phhrllxlsvtkodsyamltvoypqoj")
+ .withTopicStatus("dfjjkb"))
+ .withParameterGroup(new ParameterGroupStatus().withNodeIdsToReboot(Arrays.asList("idyqnyv"))
+ .withParameterApplyStatus("jrxbdxqellqqtknz")
+ .withParameterGroupName("ezciyomlrtvgjq"))
+ .withPreferredMaintenanceWindow("gnqllhurfpmhsujlnznvuhtnacwfe")
+ .withSseDescription(
+ new SseDescription().withStatus(new SseStatusEnumValue().withValue(SseStatus.DISABLED)))
+ .withSecurityGroups(
+ Arrays.asList(new SecurityGroupMembership().withSecurityGroupIdentifier("ehbvorabecsniiea")
+ .withStatus("ymc")))
+ .withStatus("mpwpseuoxrzbpamqwtibhochip")
+ .withSubnetGroup("tzsrvhfugpjrwm")
+ .withTotalNodes(26))
+ .withPublicCloudConnectorsResourceId("jzzs")
+ .withAwsAccountId("xgeehpujhnyfhspdaqcugx")
+ .withArn("eqibkrig")
+ .withPublicCloudResourceName("rdpgjpjzbwahajy")
+ .withAwsSourceSchema("ukv")
+ .withAwsRegion("kyjdudcmqspnbb")
+ .withAwsTags(mapOf("key1821", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DaxClusters_Delete
+
+```java
+/**
+ * Samples for DaxClusters Delete.
+ */
+public final class DaxClustersDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/DaxClusters_Delete.
+ * json
+ */
+ /**
+ * Sample code: DaxClusters_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void daxClustersDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.daxClusters()
+ .delete("rgdaxCluster",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DaxClusters_GetByResourceGroup
+
+```java
+/**
+ * Samples for DaxClusters GetByResourceGroup.
+ */
+public final class DaxClustersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/DaxClusters_Get.
+ * json
+ */
+ /**
+ * Sample code: DaxClusters_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void daxClustersGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.daxClusters()
+ .getByResourceGroupWithResponse("rgdaxCluster",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DaxClusters_List
+
+```java
+/**
+ * Samples for DaxClusters List.
+ */
+public final class DaxClustersListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DaxClusters_ListBySubscription.json
+ */
+ /**
+ * Sample code: DaxClusters_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ daxClustersListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.daxClusters().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DaxClusters_ListByResourceGroup
+
+```java
+/**
+ * Samples for DaxClusters ListByResourceGroup.
+ */
+public final class DaxClustersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DaxClusters_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: DaxClusters_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ daxClustersListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.daxClusters().listByResourceGroup("rgdaxCluster", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DaxClusters_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.DaxCluster;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DaxClusters Update.
+ */
+public final class DaxClustersUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/DaxClusters_Update.
+ * json
+ */
+ /**
+ * Sample code: DaxClusters_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void daxClustersUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ DaxCluster resource = manager.daxClusters()
+ .getByResourceGroupWithResponse("rgdaxCluster",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key3464", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DynamoDbContinuousBackupsDescriptions_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsDynamoDBContinuousBackupsDescriptionProperties;
+import com.azure.resourcemanager.awsconnector.models.ContinuousBackupsStatus;
+import com.azure.resourcemanager.awsconnector.models.ContinuousBackupsStatusEnumValue;
+import com.azure.resourcemanager.awsconnector.models.DynamoDBContinuousBackupsDescriptionProperties;
+import com.azure.resourcemanager.awsconnector.models.PointInTimeRecoveryDescription;
+import com.azure.resourcemanager.awsconnector.models.PointInTimeRecoveryStatus;
+import com.azure.resourcemanager.awsconnector.models.PointInTimeRecoveryStatusEnumValue;
+import java.time.OffsetDateTime;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DynamoDbContinuousBackupsDescriptions CreateOrReplace.
+ */
+public final class DynamoDbContinuousBackupsDescriptionsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbContinuousBackupsDescriptions_CreateOrReplace.json
+ */
+ /**
+ * Sample code: DynamoDbContinuousBackupsDescriptions_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void dynamoDbContinuousBackupsDescriptionsCreateOrReplace(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbContinuousBackupsDescriptions()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("zlepfxe")
+ .withExistingResourceGroup("rgdynamoDBContinuousBackupsDescription")
+ .withTags(mapOf("key6182", "fakeTokenPlaceholder"))
+ .withProperties(
+ new DynamoDBContinuousBackupsDescriptionProperties()
+ .withAwsProperties(new AwsDynamoDBContinuousBackupsDescriptionProperties()
+ .withContinuousBackupsStatus(
+ new ContinuousBackupsStatusEnumValue().withValue(ContinuousBackupsStatus.DISABLED))
+ .withPointInTimeRecoveryDescription(new PointInTimeRecoveryDescription()
+ .withEarliestRestorableDateTime(OffsetDateTime.parse("2024-10-08T03:52:00.281Z"))
+ .withLatestRestorableDateTime(OffsetDateTime.parse("2024-10-08T03:52:00.281Z"))
+ .withPointInTimeRecoveryStatus(new PointInTimeRecoveryStatusEnumValue()
+ .withValue(PointInTimeRecoveryStatus.DISABLED))))
+ .withPublicCloudConnectorsResourceId("cmxfprcuzlfsuapudqgzmyrz")
+ .withAwsAccountId("mf")
+ .withArn("ftscqdgahea")
+ .withPublicCloudResourceName("y")
+ .withAwsSourceSchema("qdkzzibfkzzsphoguehj")
+ .withAwsRegion("vvdgggbbnkqfqlawtbkkxhtn")
+ .withAwsTags(mapOf("key4982", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DynamoDbContinuousBackupsDescriptions_Delete
+
+```java
+/**
+ * Samples for DynamoDbContinuousBackupsDescriptions Delete.
+ */
+public final class DynamoDbContinuousBackupsDescriptionsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbContinuousBackupsDescriptions_Delete.json
+ */
+ /**
+ * Sample code: DynamoDbContinuousBackupsDescriptions_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void dynamoDbContinuousBackupsDescriptionsDelete(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbContinuousBackupsDescriptions()
+ .delete("rgdynamoDBContinuousBackupsDescription",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DynamoDbContinuousBackupsDescriptions_GetByResourceGroup
+
+```java
+/**
+ * Samples for DynamoDbContinuousBackupsDescriptions GetByResourceGroup.
+ */
+public final class DynamoDbContinuousBackupsDescriptionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbContinuousBackupsDescriptions_Get.json
+ */
+ /**
+ * Sample code: DynamoDbContinuousBackupsDescriptions_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ dynamoDbContinuousBackupsDescriptionsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbContinuousBackupsDescriptions()
+ .getByResourceGroupWithResponse("rgdynamoDBContinuousBackupsDescription",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DynamoDbContinuousBackupsDescriptions_List
+
+```java
+/**
+ * Samples for DynamoDbContinuousBackupsDescriptions List.
+ */
+public final class DynamoDbContinuousBackupsDescriptionsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbContinuousBackupsDescriptions_ListBySubscription.json
+ */
+ /**
+ * Sample code: DynamoDbContinuousBackupsDescriptions_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void dynamoDbContinuousBackupsDescriptionsListBySubscription(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbContinuousBackupsDescriptions().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DynamoDbContinuousBackupsDescriptions_ListByResourceGroup
+
+```java
+/**
+ * Samples for DynamoDbContinuousBackupsDescriptions ListByResourceGroup.
+ */
+public final class DynamoDbContinuousBackupsDescriptionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbContinuousBackupsDescriptions_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: DynamoDbContinuousBackupsDescriptions_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void dynamoDbContinuousBackupsDescriptionsListByResourceGroup(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbContinuousBackupsDescriptions()
+ .listByResourceGroup("rgdynamoDBContinuousBackupsDescription", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DynamoDbContinuousBackupsDescriptions_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.DynamoDBContinuousBackupsDescription;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DynamoDbContinuousBackupsDescriptions Update.
+ */
+public final class DynamoDbContinuousBackupsDescriptionsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbContinuousBackupsDescriptions_Update.json
+ */
+ /**
+ * Sample code: DynamoDbContinuousBackupsDescriptions_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void dynamoDbContinuousBackupsDescriptionsUpdate(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ DynamoDBContinuousBackupsDescription resource = manager.dynamoDbContinuousBackupsDescriptions()
+ .getByResourceGroupWithResponse("rgdynamoDBContinuousBackupsDescription",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key5810", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DynamoDbTables_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AttributeDefinition;
+import com.azure.resourcemanager.awsconnector.models.AwsDynamoDBTableProperties;
+import com.azure.resourcemanager.awsconnector.models.ContributorInsightsSpecification;
+import com.azure.resourcemanager.awsconnector.models.Csv;
+import com.azure.resourcemanager.awsconnector.models.DynamoDBTableProperties;
+import com.azure.resourcemanager.awsconnector.models.GlobalSecondaryIndex;
+import com.azure.resourcemanager.awsconnector.models.ImportSourceSpecification;
+import com.azure.resourcemanager.awsconnector.models.InputFormatOptions;
+import com.azure.resourcemanager.awsconnector.models.KeySchema;
+import com.azure.resourcemanager.awsconnector.models.KinesisStreamSpecification;
+import com.azure.resourcemanager.awsconnector.models.KinesisStreamSpecificationApproximateCreationDateTimePrecision;
+import com.azure.resourcemanager.awsconnector.models.LocalSecondaryIndex;
+import com.azure.resourcemanager.awsconnector.models.PointInTimeRecoverySpecification;
+import com.azure.resourcemanager.awsconnector.models.Projection;
+import com.azure.resourcemanager.awsconnector.models.ProvisionedThroughput;
+import com.azure.resourcemanager.awsconnector.models.ResourcePolicy;
+import com.azure.resourcemanager.awsconnector.models.S3BucketSource;
+import com.azure.resourcemanager.awsconnector.models.SseSpecification;
+import com.azure.resourcemanager.awsconnector.models.StreamSpecification;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated8;
+import com.azure.resourcemanager.awsconnector.models.TimeToLiveSpecification;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DynamoDbTables CreateOrReplace.
+ */
+public final class DynamoDbTablesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbTables_CreateOrReplace.json
+ */
+ /**
+ * Sample code: DynamoDbTables_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ dynamoDbTablesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbTables()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("fmkjilswdjyisfuwxuj")
+ .withExistingResourceGroup("rgdynamoDBTable")
+ .withTags(mapOf("key2178", "fakeTokenPlaceholder"))
+ .withProperties(new DynamoDBTableProperties().withAwsProperties(new AwsDynamoDBTableProperties()
+ .withArn("qbvqgymuxfzuwybdspdhcuvfouwnet")
+ .withAttributeDefinitions(Arrays.asList(new AttributeDefinition().withAttributeName("caryhpofnkqtoc")
+ .withAttributeType("bcmjgzaljcemcrswr")))
+ .withBillingMode("pwxrsjcybdcidejuhvrckvxyxad")
+ .withContributorInsightsSpecification(new ContributorInsightsSpecification().withEnabled(true))
+ .withDeletionProtectionEnabled(true)
+ .withGlobalSecondaryIndexes(Arrays.asList(new GlobalSecondaryIndex()
+ .withContributorInsightsSpecification(new ContributorInsightsSpecification().withEnabled(true))
+ .withIndexName("uqlzacnvsvayrvirrwwttb")
+ .withKeySchema(Arrays.asList(
+ new KeySchema().withAttributeName("wisgqkyoouaxivtrtay").withKeyType("fakeTokenPlaceholder")))
+ .withProjection(new Projection().withNonKeyAttributes(Arrays.asList("loqmvohtjsscueegam"))
+ .withProjectionType("atbzepkydpgudoaqi"))
+ .withProvisionedThroughput(
+ new ProvisionedThroughput().withReadCapacityUnits(10).withWriteCapacityUnits(28))))
+ .withImportSourceSpecification(
+ new ImportSourceSpecification().withInputCompressionType("bjswmnwxleqmcth")
+ .withInputFormat("grnhhysgejvbnecrqoynjomz")
+ .withInputFormatOptions(
+ new InputFormatOptions().withCsv(new Csv().withDelimiter("qzowvvpwwhptthlgvrtnpyjszetrt")
+ .withHeaderList(Arrays.asList("gminuylhgebpjx"))))
+ .withS3BucketSource(new S3BucketSource().withS3Bucket("exulhkspgmo")
+ .withS3BucketOwner("pyawhaxbwqhgarz")
+ .withS3KeyPrefix("fakeTokenPlaceholder")))
+ .withKeySchema(Arrays.asList(
+ new KeySchema().withAttributeName("wisgqkyoouaxivtrtay").withKeyType("fakeTokenPlaceholder")))
+ .withKinesisStreamSpecification(new KinesisStreamSpecification()
+ .withApproximateCreationDateTimePrecision(
+ KinesisStreamSpecificationApproximateCreationDateTimePrecision.MICROSECOND)
+ .withStreamArn("qldltl"))
+ .withLocalSecondaryIndexes(Arrays.asList(new LocalSecondaryIndex().withIndexName("gintyosxvkjqpe")
+ .withKeySchema(Arrays.asList(
+ new KeySchema().withAttributeName("wisgqkyoouaxivtrtay").withKeyType("fakeTokenPlaceholder")))
+ .withProjection(new Projection().withNonKeyAttributes(Arrays.asList("loqmvohtjsscueegam"))
+ .withProjectionType("atbzepkydpgudoaqi"))))
+ .withPointInTimeRecoverySpecification(
+ new PointInTimeRecoverySpecification().withPointInTimeRecoveryEnabled(true))
+ .withProvisionedThroughput(
+ new ProvisionedThroughput().withReadCapacityUnits(10).withWriteCapacityUnits(28))
+ .withResourcePolicy(new ResourcePolicy())
+ .withSseSpecification(new SseSpecification().withKmsMasterKeyId("fakeTokenPlaceholder")
+ .withSseEnabled(true)
+ .withSseType("osjalywculjbrystezvjojxe"))
+ .withStreamArn("xvkrzs")
+ .withStreamSpecification(
+ new StreamSpecification().withResourcePolicy(new ResourcePolicy()).withStreamViewType("wemod"))
+ .withTableClass("tmbfrfbppwhjpm")
+ .withTableName("mqvlcdboopn")
+ .withTags(Arrays.asList(new TagAutoGenerated8().withKey("fakeTokenPlaceholder").withValue("dkgweupnz")))
+ .withTimeToLiveSpecification(
+ new TimeToLiveSpecification().withAttributeName("sxbfejubturdtyusqywguqni").withEnabled(true)))
+ .withPublicCloudConnectorsResourceId("nugnoqcknmrrminwvfvloqsporjd")
+ .withAwsAccountId("dejqcxb")
+ .withArn("gimtbcfiznraniycjyalnwrfstm")
+ .withPublicCloudResourceName("lkbwyvnzooydbnembmykhmw")
+ .withAwsSourceSchema("sqkkuxwamzevkp")
+ .withAwsRegion("rdzrhtbydhmaxzuwe")
+ .withAwsTags(mapOf("key3791", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DynamoDbTables_Delete
+
+```java
+/**
+ * Samples for DynamoDbTables Delete.
+ */
+public final class DynamoDbTablesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbTables_Delete.json
+ */
+ /**
+ * Sample code: DynamoDbTables_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void dynamoDbTablesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbTables()
+ .delete("rgdynamoDBTable",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DynamoDbTables_GetByResourceGroup
+
+```java
+/**
+ * Samples for DynamoDbTables GetByResourceGroup.
+ */
+public final class DynamoDbTablesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/DynamoDbTables_Get.
+ * json
+ */
+ /**
+ * Sample code: DynamoDbTables_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void dynamoDbTablesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbTables()
+ .getByResourceGroupWithResponse("rgdynamoDBTable",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DynamoDbTables_List
+
+```java
+/**
+ * Samples for DynamoDbTables List.
+ */
+public final class DynamoDbTablesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbTables_ListBySubscription.json
+ */
+ /**
+ * Sample code: DynamoDbTables_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ dynamoDbTablesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbTables().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DynamoDbTables_ListByResourceGroup
+
+```java
+/**
+ * Samples for DynamoDbTables ListByResourceGroup.
+ */
+public final class DynamoDbTablesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbTables_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: DynamoDbTables_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ dynamoDbTablesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.dynamoDbTables().listByResourceGroup("rgdynamoDBTable", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DynamoDbTables_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.DynamoDBTable;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DynamoDbTables Update.
+ */
+public final class DynamoDbTablesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * DynamoDbTables_Update.json
+ */
+ /**
+ * Sample code: DynamoDbTables_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void dynamoDbTablesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ DynamoDBTable resource = manager.dynamoDbTables()
+ .getByResourceGroupWithResponse("rgdynamoDBTable",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key6429", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2AccountAttributes_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AccountAttributeValue;
+import com.azure.resourcemanager.awsconnector.models.AwsEc2AccountAttributeProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2AccountAttributeProperties;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2AccountAttributes CreateOrReplace.
+ */
+public final class Ec2AccountAttributesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2AccountAttributes_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2AccountAttributes_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2AccountAttributesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2AccountAttributes()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("mxywielgbokfdxxwuudnbwzjcf")
+ .withExistingResourceGroup("rgec2AccountAttribute")
+ .withTags(mapOf("key6022", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2AccountAttributeProperties()
+ .withAwsProperties(new AwsEc2AccountAttributeProperties().withAttributeName("vsrccnoksnxyyisrlfzkuj")
+ .withAttributeValues(
+ Arrays.asList(new AccountAttributeValue().withAttributeValue("lvlyhjnivtpgkbt"))))
+ .withPublicCloudConnectorsResourceId("rmmqxjdxoe")
+ .withAwsAccountId("jzeepmbcwiwakwsvqakkaz")
+ .withArn("ttwi")
+ .withPublicCloudResourceName("lhdzqjxtfagnhbdjev")
+ .withAwsSourceSchema("njukzwmmwgmvurer")
+ .withAwsRegion("ojtquhkurhjtoocjpjyibb")
+ .withAwsTags(mapOf("key2779", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2AccountAttributes_Delete
+
+```java
+/**
+ * Samples for Ec2AccountAttributes Delete.
+ */
+public final class Ec2AccountAttributesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2AccountAttributes_Delete.json
+ */
+ /**
+ * Sample code: Ec2AccountAttributes_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2AccountAttributesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2AccountAttributes()
+ .delete("rgec2AccountAttribute",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2AccountAttributes_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2AccountAttributes GetByResourceGroup.
+ */
+public final class Ec2AccountAttributesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2AccountAttributes_Get.json
+ */
+ /**
+ * Sample code: Ec2AccountAttributes_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2AccountAttributesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2AccountAttributes()
+ .getByResourceGroupWithResponse("rgec2AccountAttribute",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2AccountAttributes_List
+
+```java
+/**
+ * Samples for Ec2AccountAttributes List.
+ */
+public final class Ec2AccountAttributesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2AccountAttributes_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2AccountAttributes_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2AccountAttributesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2AccountAttributes().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2AccountAttributes_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2AccountAttributes ListByResourceGroup.
+ */
+public final class Ec2AccountAttributesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2AccountAttributes_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2AccountAttributes_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2AccountAttributesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2AccountAttributes().listByResourceGroup("rgec2AccountAttribute", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2AccountAttributes_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2AccountAttribute;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2AccountAttributes Update.
+ */
+public final class Ec2AccountAttributesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2AccountAttributes_Update.json
+ */
+ /**
+ * Sample code: Ec2AccountAttributes_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2AccountAttributesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2AccountAttribute resource = manager.ec2AccountAttributes()
+ .getByResourceGroupWithResponse("rgec2AccountAttribute",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key675", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Addresses_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2AddressProperties;
+import com.azure.resourcemanager.awsconnector.models.DomainType;
+import com.azure.resourcemanager.awsconnector.models.DomainTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.Ec2AddressProperties;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated9;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Addresses CreateOrReplace.
+ */
+public final class Ec2AddressesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Addresses_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2Addresses_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2AddressesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Addresses()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("uwbmdjhaqaqz")
+ .withExistingResourceGroup("rgec2Address")
+ .withTags(mapOf("key991", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2AddressProperties()
+ .withAwsProperties(new AwsEc2AddressProperties().withAllocationId("lakfpwuipmqvwqzpiojxgxjrh")
+ .withAssociationId("wwgugzolrxtpvpaxafaqi")
+ .withCarrierIp("tpwlxdfmqhkr")
+ .withCustomerOwnedIp("qpvlzqkbksm")
+ .withCustomerOwnedIpv4Pool("sbzgaydiiwsnarhj")
+ .withDomain(new DomainTypeEnumValue().withValue(DomainType.STANDARD))
+ .withInstanceId("lcw")
+ .withNetworkBorderGroup("cvmuzymwrwriouiziwwhybkwv")
+ .withNetworkInterfaceId("pundetxxybkvjkwhenmdlxzoji")
+ .withNetworkInterfaceOwnerId("mxcypkkbqs")
+ .withPrivateIpAddress("syfgrbvaucqkmkakjhez")
+ .withPublicIp("uzkzeonfghtefuulqaev")
+ .withPublicIpv4Pool("dlv")
+ .withTags(Arrays.asList(new TagAutoGenerated9().withKey("fakeTokenPlaceholder")
+ .withValue("tcahesrhkpnaonjnhbfsmiyhypjmw"))))
+ .withPublicCloudConnectorsResourceId("eytnpsrqhczygcelqjky")
+ .withAwsAccountId("nfzczrgklte")
+ .withArn("kgqnwrdoqeqjraczlznfiu")
+ .withPublicCloudResourceName("xongligvmdxe")
+ .withAwsSourceSchema("uachsjdkxtczamkh")
+ .withAwsRegion("qocfydee")
+ .withAwsTags(mapOf("key6276", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Addresses_Delete
+
+```java
+/**
+ * Samples for Ec2Addresses Delete.
+ */
+public final class Ec2AddressesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Addresses_Delete
+ * .json
+ */
+ /**
+ * Sample code: Ec2Addresses_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2AddressesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Addresses()
+ .delete("rgec2Address",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Addresses_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Addresses GetByResourceGroup.
+ */
+public final class Ec2AddressesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Addresses_Get.
+ * json
+ */
+ /**
+ * Sample code: Ec2Addresses_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2AddressesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Addresses()
+ .getByResourceGroupWithResponse("rgec2Address",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Addresses_List
+
+```java
+/**
+ * Samples for Ec2Addresses List.
+ */
+public final class Ec2AddressesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Addresses_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2Addresses_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2AddressesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Addresses().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Addresses_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Addresses ListByResourceGroup.
+ */
+public final class Ec2AddressesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Addresses_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2Addresses_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2AddressesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Addresses().listByResourceGroup("rgec2Address", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Addresses_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2Address;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Addresses Update.
+ */
+public final class Ec2AddressesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Addresses_Update
+ * .json
+ */
+ /**
+ * Sample code: Ec2Addresses_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2AddressesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2Address resource = manager.ec2Addresses()
+ .getByResourceGroupWithResponse("rgec2Address",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key976", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2FlowLogs_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2FlowLogProperties;
+import com.azure.resourcemanager.awsconnector.models.DestinationOptionsModelProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2FlowLogProperties;
+import com.azure.resourcemanager.awsconnector.models.FileFormat;
+import com.azure.resourcemanager.awsconnector.models.LogDestinationType;
+import com.azure.resourcemanager.awsconnector.models.ResourceType;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated10;
+import com.azure.resourcemanager.awsconnector.models.TrafficType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2FlowLogs CreateOrReplace.
+ */
+public final class Ec2FlowLogsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2FlowLogs_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2FlowLogs_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2FlowLogsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2FlowLogs()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("iheortzyczwfplyjuuqwhdtpscn")
+ .withExistingResourceGroup("rgec2FlowLog")
+ .withTags(mapOf("key8783", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2FlowLogProperties()
+ .withAwsProperties(new AwsEc2FlowLogProperties().withDeliverCrossAccountRole("upu")
+ .withDeliverLogsPermissionArn("sfhmarwniuptmkaegsplmsozsmc")
+ .withDestinationOptions(new DestinationOptionsModelProperties().withFileFormat(FileFormat.PARQUET)
+ .withHiveCompatiblePartitions(true)
+ .withPerHourPartition(true))
+ .withId("idflwxdxpu")
+ .withLogDestination("ztqhcrirplxmgncvubutyzqefvd")
+ .withLogDestinationType(LogDestinationType.CLOUD_WATCH_LOGS)
+ .withLogFormat("miqwrkvqyq")
+ .withLogGroupName("gptervjekilsbzqokcmrbumaie")
+ .withMaxAggregationInterval(15)
+ .withResourceId("mokmavuqvq")
+ .withResourceType(ResourceType.fromString("NetworkInterface"))
+ .withTags(Arrays.asList(new TagAutoGenerated10().withKey("fakeTokenPlaceholder")
+ .withValue("qdqsngozfinennzbilnzeemjzilpb")))
+ .withTrafficType(TrafficType.ACCEPT))
+ .withPublicCloudConnectorsResourceId("djh")
+ .withAwsAccountId("shsomlkgpjnxnonvrv")
+ .withArn("ilajcrcqxitnhyhorqitssmvsfwen")
+ .withPublicCloudResourceName("ymv")
+ .withAwsSourceSchema("pnjgqxqhnwhcs")
+ .withAwsRegion("stazvnpsmrpkoxyyzngdkkuif")
+ .withAwsTags(mapOf("key3000", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2FlowLogs_Delete
+
+```java
+/**
+ * Samples for Ec2FlowLogs Delete.
+ */
+public final class Ec2FlowLogsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2FlowLogs_Delete.
+ * json
+ */
+ /**
+ * Sample code: Ec2FlowLogs_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2FlowLogsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2FlowLogs()
+ .delete("rgec2FlowLog",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2FlowLogs_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2FlowLogs GetByResourceGroup.
+ */
+public final class Ec2FlowLogsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2FlowLogs_Get.
+ * json
+ */
+ /**
+ * Sample code: Ec2FlowLogs_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2FlowLogsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2FlowLogs()
+ .getByResourceGroupWithResponse("rgec2FlowLog",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2FlowLogs_List
+
+```java
+/**
+ * Samples for Ec2FlowLogs List.
+ */
+public final class Ec2FlowLogsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2FlowLogs_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2FlowLogs_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2FlowLogsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2FlowLogs().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2FlowLogs_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2FlowLogs ListByResourceGroup.
+ */
+public final class Ec2FlowLogsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2FlowLogs_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2FlowLogs_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2FlowLogsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2FlowLogs().listByResourceGroup("rgec2FlowLog", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2FlowLogs_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2FlowLog;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2FlowLogs Update.
+ */
+public final class Ec2FlowLogsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2FlowLogs_Update.
+ * json
+ */
+ /**
+ * Sample code: Ec2FlowLogs_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2FlowLogsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2FlowLog resource = manager.ec2FlowLogs()
+ .getByResourceGroupWithResponse("rgec2FlowLog",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key6176", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Images_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.ArchitectureValues;
+import com.azure.resourcemanager.awsconnector.models.ArchitectureValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.AwsEc2ImageProperties;
+import com.azure.resourcemanager.awsconnector.models.BlockDeviceMapping;
+import com.azure.resourcemanager.awsconnector.models.BootModeValues;
+import com.azure.resourcemanager.awsconnector.models.BootModeValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.DeviceType;
+import com.azure.resourcemanager.awsconnector.models.DeviceTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.EbsBlockDevice;
+import com.azure.resourcemanager.awsconnector.models.Ec2ImageProperties;
+import com.azure.resourcemanager.awsconnector.models.HypervisorType;
+import com.azure.resourcemanager.awsconnector.models.HypervisorTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ImageState;
+import com.azure.resourcemanager.awsconnector.models.ImageStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ImageTypeValues;
+import com.azure.resourcemanager.awsconnector.models.ImageTypeValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ImdsSupportValues;
+import com.azure.resourcemanager.awsconnector.models.ImdsSupportValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.PlatformValues;
+import com.azure.resourcemanager.awsconnector.models.PlatformValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ProductCode;
+import com.azure.resourcemanager.awsconnector.models.ProductCodeValues;
+import com.azure.resourcemanager.awsconnector.models.ProductCodeValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.StateReason;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated11;
+import com.azure.resourcemanager.awsconnector.models.TpmSupportValues;
+import com.azure.resourcemanager.awsconnector.models.TpmSupportValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.VirtualizationType;
+import com.azure.resourcemanager.awsconnector.models.VirtualizationTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.VolumeType;
+import com.azure.resourcemanager.awsconnector.models.VolumeTypeEnumValue;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Images CreateOrReplace.
+ */
+public final class Ec2ImagesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Images_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2Images_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2ImagesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Images()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("rskzngterhbdzpdgzthkwkfsim")
+ .withExistingResourceGroup("rgec2Image")
+ .withTags(mapOf("key733", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2ImageProperties()
+ .withAwsProperties(new AwsEc2ImageProperties()
+ .withArchitecture(new ArchitectureValuesEnumValue().withValue(ArchitectureValues.ARM64))
+ .withBlockDeviceMappings(Arrays.asList(new BlockDeviceMapping().withDeviceName("foqeiqkjrwirhz")
+ .withEbs(new EbsBlockDevice().withDeleteOnTermination(true)
+ .withEncrypted(true)
+ .withIops(6)
+ .withKmsKeyId("fakeTokenPlaceholder")
+ .withOutpostArn("yzyqckzzbmbeimvwrvckybpdil")
+ .withSnapshotId("yjsctqicabclgsmtr")
+ .withThroughput(29)
+ .withVolumeSize(15)
+ .withVolumeType(new VolumeTypeEnumValue().withValue(VolumeType.GP2)))
+ .withNoDevice("rs")
+ .withVirtualName("lgrpmrjfdvrwmfghttgcdgqsfum")))
+ .withBootMode(new BootModeValuesEnumValue().withValue(BootModeValues.LEGACY_BIOS))
+ .withCreationDate("iri")
+ .withDeprecationTime("rjbfczermuljog")
+ .withDeregistrationProtection("qgzillhrsaoasehpuum")
+ .withDescription("xcucajel")
+ .withEnaSupport(true)
+ .withHypervisor(new HypervisorTypeEnumValue().withValue(HypervisorType.OVM))
+ .withImageId("abwaglkivomqynfncjesal")
+ .withImageLocation("pgjapgkiakctxcpfpmvk")
+ .withImageOwnerAlias("sqvaqlxrlzhlzbczv")
+ .withImageType(new ImageTypeValuesEnumValue().withValue(ImageTypeValues.KERNEL))
+ .withImdsSupport(new ImdsSupportValuesEnumValue().withValue(ImdsSupportValues.V2_0))
+ .withKernelId("mfsmykrvrtbosarfpfuwahchz")
+ .withLastLaunchedTime("syfznkavvtio")
+ .withName("secemuogxgahtxnpthro")
+ .withOwnerId("nhuhifhzxvkdxxvaiaibzihkyvbrwh")
+ .withPlatform(new PlatformValuesEnumValue().withValue(PlatformValues.WINDOWS))
+ .withPlatformDetails("lisborjwdvhfnwsziqhfnxiqdmdynp")
+ .withProductCodes(Arrays.asList(new ProductCode().withProductCodeId("fakeTokenPlaceholder")
+ .withProductCodeType(new ProductCodeValuesEnumValue().withValue(ProductCodeValues.DEVPAY))))
+ .withPublicProperty(true)
+ .withRamdiskId("xrcwfszijxclkazpcletlaoca")
+ .withRootDeviceName("jjgzjpjxtlhvqyvdrnqelzasdmn")
+ .withRootDeviceType(new DeviceTypeEnumValue().withValue(DeviceType.EBS))
+ .withSourceInstanceId("g")
+ .withSriovNetSupport("sbnokjesjjkngdixqtiijn")
+ .withState(new ImageStateEnumValue().withValue(ImageState.AVAILABLE))
+ .withStateReason(new StateReason().withCode("fakeTokenPlaceholder").withMessage("qgjrouiqrxyqi"))
+ .withTags(Arrays.asList(new TagAutoGenerated11().withKey("fakeTokenPlaceholder")
+ .withValue("ehismpwetbakkwkjtngdrofhipjlko")))
+ .withTpmSupport(new TpmSupportValuesEnumValue().withValue(TpmSupportValues.V2_0))
+ .withUsageOperation("gdlrmqiw")
+ .withVirtualizationType(new VirtualizationTypeEnumValue().withValue(VirtualizationType.HVM)))
+ .withPublicCloudConnectorsResourceId("dth")
+ .withAwsAccountId("yvwtilsspffh")
+ .withArn("qaahwnaabcqlufiiwhkwhv")
+ .withPublicCloudResourceName("iwvkviywiipsmvxpemnivpyqwnp")
+ .withAwsSourceSchema("zpslskfplbejouiomrfkp")
+ .withAwsRegion("chnagdbgxpnwsklnknirzcmbyhif")
+ .withAwsTags(mapOf("key3097", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Images_Delete
+
+```java
+/**
+ * Samples for Ec2Images Delete.
+ */
+public final class Ec2ImagesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Images_Delete.
+ * json
+ */
+ /**
+ * Sample code: Ec2Images_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2ImagesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Images()
+ .delete("rgec2Image",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Images_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Images GetByResourceGroup.
+ */
+public final class Ec2ImagesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Images_Get.json
+ */
+ /**
+ * Sample code: Ec2Images_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2ImagesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Images()
+ .getByResourceGroupWithResponse("rgec2Image",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Images_List
+
+```java
+/**
+ * Samples for Ec2Images List.
+ */
+public final class Ec2ImagesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Images_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2Images_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2ImagesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Images().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Images_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Images ListByResourceGroup.
+ */
+public final class Ec2ImagesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Images_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2Images_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2ImagesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Images().listByResourceGroup("rgec2Image", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Images_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2Image;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Images Update.
+ */
+public final class Ec2ImagesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Images_Update.
+ * json
+ */
+ /**
+ * Sample code: Ec2Images_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2ImagesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2Image resource = manager.ec2Images()
+ .getByResourceGroupWithResponse("rgec2Image",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1684", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2InstanceStatuses_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2InstanceStatusProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2InstanceStatusProperties;
+import com.azure.resourcemanager.awsconnector.models.EventCode;
+import com.azure.resourcemanager.awsconnector.models.EventCodeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceState;
+import com.azure.resourcemanager.awsconnector.models.InstanceStateName;
+import com.azure.resourcemanager.awsconnector.models.InstanceStateNameEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceStatusDetails;
+import com.azure.resourcemanager.awsconnector.models.InstanceStatusEvent;
+import com.azure.resourcemanager.awsconnector.models.InstanceStatusSummary;
+import com.azure.resourcemanager.awsconnector.models.StatusName;
+import com.azure.resourcemanager.awsconnector.models.StatusNameEnumValue;
+import com.azure.resourcemanager.awsconnector.models.StatusType;
+import com.azure.resourcemanager.awsconnector.models.StatusTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.SummaryStatus;
+import com.azure.resourcemanager.awsconnector.models.SummaryStatusEnumValue;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2InstanceStatuses CreateOrReplace.
+ */
+public final class Ec2InstanceStatusesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2InstanceStatuses_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2InstanceStatuses_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2InstanceStatusesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2InstanceStatuses()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("pgcnqdiaetxhtdrimhlcwthap")
+ .withExistingResourceGroup("rgec2InstanceStatus")
+ .withTags(mapOf("key1363", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2InstanceStatusProperties()
+ .withAwsProperties(new AwsEc2InstanceStatusProperties().withAvailabilityZone("ytnhdkisucgzas")
+ .withEvents(Arrays.asList(new InstanceStatusEvent()
+ .withCode(new EventCodeEnumValue().withValue(EventCode.INSTANCE_REBOOT))
+ .withDescription("hgvqagwss")
+ .withInstanceEventId("rnbshnkjo")
+ .withNotAfter(OffsetDateTime.parse("2024-10-08T03:53:26.681Z"))
+ .withNotBefore(OffsetDateTime.parse("2024-10-08T03:53:26.681Z"))
+ .withNotBeforeDeadline(OffsetDateTime.parse("2024-10-08T03:53:26.681Z"))))
+ .withInstanceId("aoffpxifvwnouuzzpkqc")
+ .withInstanceState(new InstanceState()
+ .withCode(9)
+ .withName(new InstanceStateNameEnumValue().withValue(InstanceStateName.PENDING)))
+ .withInstanceStatus(new InstanceStatusSummary()
+ .withDetails(Arrays.asList(new InstanceStatusDetails()
+ .withImpairedSince(OffsetDateTime.parse("2024-10-08T03:53:26.682Z"))
+ .withName(new StatusNameEnumValue().withValue(StatusName.REACHABILITY))
+ .withStatus(new StatusTypeEnumValue().withValue(StatusType.FAILED))))
+ .withStatus(new SummaryStatusEnumValue().withValue(SummaryStatus.IMPAIRED)))
+ .withOutpostArn("pprqpuqeokryiz")
+ .withSystemStatus(new InstanceStatusSummary()
+ .withDetails(Arrays.asList(new InstanceStatusDetails()
+ .withImpairedSince(OffsetDateTime.parse("2024-10-08T03:53:26.682Z"))
+ .withName(new StatusNameEnumValue().withValue(StatusName.REACHABILITY))
+ .withStatus(new StatusTypeEnumValue().withValue(StatusType.FAILED))))
+ .withStatus(new SummaryStatusEnumValue().withValue(SummaryStatus.IMPAIRED))))
+ .withPublicCloudConnectorsResourceId("ouhnawwxmqjpfsmz")
+ .withAwsAccountId("pjfvkzfpdqdiweudknutyey")
+ .withArn("nnkvtshcitbzvtrcwybizpxfznrsyg")
+ .withPublicCloudResourceName("mqygrsmavjlivhliidvrmopovsba")
+ .withAwsSourceSchema("zvcrlmc")
+ .withAwsRegion("uxchexljsahdlvcecpckwevokhvd")
+ .withAwsTags(mapOf("key8745", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2InstanceStatuses_Delete
+
+```java
+/**
+ * Samples for Ec2InstanceStatuses Delete.
+ */
+public final class Ec2InstanceStatusesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2InstanceStatuses_Delete.json
+ */
+ /**
+ * Sample code: Ec2InstanceStatuses_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstanceStatusesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2InstanceStatuses()
+ .delete("rgec2InstanceStatus",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2InstanceStatuses_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2InstanceStatuses GetByResourceGroup.
+ */
+public final class Ec2InstanceStatusesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2InstanceStatuses_Get.json
+ */
+ /**
+ * Sample code: Ec2InstanceStatuses_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstanceStatusesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2InstanceStatuses()
+ .getByResourceGroupWithResponse("rgec2InstanceStatus",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2InstanceStatuses_List
+
+```java
+/**
+ * Samples for Ec2InstanceStatuses List.
+ */
+public final class Ec2InstanceStatusesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2InstanceStatuses_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2InstanceStatuses_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2InstanceStatusesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2InstanceStatuses().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2InstanceStatuses_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2InstanceStatuses ListByResourceGroup.
+ */
+public final class Ec2InstanceStatusesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2InstanceStatuses_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2InstanceStatuses_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2InstanceStatusesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2InstanceStatuses().listByResourceGroup("rgec2InstanceStatus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2InstanceStatuses_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2InstanceStatus;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2InstanceStatuses Update.
+ */
+public final class Ec2InstanceStatusesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2InstanceStatuses_Update.json
+ */
+ /**
+ * Sample code: Ec2InstanceStatuses_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstanceStatusesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2InstanceStatus resource = manager.ec2InstanceStatuses()
+ .getByResourceGroupWithResponse("rgec2InstanceStatus",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key3283", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Instances_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.fluent.models.Ec2InstanceInner;
+import com.azure.resourcemanager.awsconnector.models.AmdSevSnpSpecification;
+import com.azure.resourcemanager.awsconnector.models.AmdSevSnpSpecificationEnumValue;
+import com.azure.resourcemanager.awsconnector.models.ArchitectureValues;
+import com.azure.resourcemanager.awsconnector.models.ArchitectureValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.AttachmentStatus;
+import com.azure.resourcemanager.awsconnector.models.AttachmentStatusEnumValue;
+import com.azure.resourcemanager.awsconnector.models.AwsEc2InstanceProperties;
+import com.azure.resourcemanager.awsconnector.models.BootModeValues;
+import com.azure.resourcemanager.awsconnector.models.BootModeValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.CapacityReservationPreference;
+import com.azure.resourcemanager.awsconnector.models.CapacityReservationPreferenceEnumValue;
+import com.azure.resourcemanager.awsconnector.models.CapacityReservationSpecificationResponse;
+import com.azure.resourcemanager.awsconnector.models.CapacityReservationTargetResponse;
+import com.azure.resourcemanager.awsconnector.models.ConnectionTrackingSpecificationResponse;
+import com.azure.resourcemanager.awsconnector.models.CpuOptions;
+import com.azure.resourcemanager.awsconnector.models.DeviceType;
+import com.azure.resourcemanager.awsconnector.models.DeviceTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.EbsInstanceBlockDevice;
+import com.azure.resourcemanager.awsconnector.models.Ec2InstanceProperties;
+import com.azure.resourcemanager.awsconnector.models.ElasticGpuAssociation;
+import com.azure.resourcemanager.awsconnector.models.ElasticInferenceAcceleratorAssociation;
+import com.azure.resourcemanager.awsconnector.models.EnclaveOptions;
+import com.azure.resourcemanager.awsconnector.models.GroupIdentifier;
+import com.azure.resourcemanager.awsconnector.models.HibernationOptions;
+import com.azure.resourcemanager.awsconnector.models.HostnameType;
+import com.azure.resourcemanager.awsconnector.models.HostnameTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.HttpTokensState;
+import com.azure.resourcemanager.awsconnector.models.HttpTokensStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.HypervisorType;
+import com.azure.resourcemanager.awsconnector.models.HypervisorTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.IamInstanceProfile;
+import com.azure.resourcemanager.awsconnector.models.InstanceAttachmentEnaSrdSpecification;
+import com.azure.resourcemanager.awsconnector.models.InstanceAttachmentEnaSrdUdpSpecification;
+import com.azure.resourcemanager.awsconnector.models.InstanceAutoRecoveryState;
+import com.azure.resourcemanager.awsconnector.models.InstanceAutoRecoveryStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceBlockDeviceMapping;
+import com.azure.resourcemanager.awsconnector.models.InstanceBootModeValues;
+import com.azure.resourcemanager.awsconnector.models.InstanceBootModeValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceIpv4Prefix;
+import com.azure.resourcemanager.awsconnector.models.InstanceIpv6Address;
+import com.azure.resourcemanager.awsconnector.models.InstanceIpv6Prefix;
+import com.azure.resourcemanager.awsconnector.models.InstanceLifecycleType;
+import com.azure.resourcemanager.awsconnector.models.InstanceLifecycleTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceMaintenanceOptions;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataEndpointState;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataEndpointStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataOptionsResponse;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataOptionsState;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataOptionsStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataProtocolState;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataProtocolStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataTagsState;
+import com.azure.resourcemanager.awsconnector.models.InstanceMetadataTagsStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceNetworkInterface;
+import com.azure.resourcemanager.awsconnector.models.InstanceNetworkInterfaceAssociation;
+import com.azure.resourcemanager.awsconnector.models.InstanceNetworkInterfaceAttachment;
+import com.azure.resourcemanager.awsconnector.models.InstancePrivateIpAddress;
+import com.azure.resourcemanager.awsconnector.models.InstanceState;
+import com.azure.resourcemanager.awsconnector.models.InstanceStateName;
+import com.azure.resourcemanager.awsconnector.models.InstanceStateNameEnumValue;
+import com.azure.resourcemanager.awsconnector.models.InstanceType;
+import com.azure.resourcemanager.awsconnector.models.InstanceTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.LicenseConfiguration;
+import com.azure.resourcemanager.awsconnector.models.Monitoring;
+import com.azure.resourcemanager.awsconnector.models.MonitoringState;
+import com.azure.resourcemanager.awsconnector.models.MonitoringStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.NetworkInterfaceStatus;
+import com.azure.resourcemanager.awsconnector.models.NetworkInterfaceStatusEnumValue;
+import com.azure.resourcemanager.awsconnector.models.Placement;
+import com.azure.resourcemanager.awsconnector.models.PlatformValues;
+import com.azure.resourcemanager.awsconnector.models.PlatformValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.PrivateDnsNameOptionsResponse;
+import com.azure.resourcemanager.awsconnector.models.ProductCode;
+import com.azure.resourcemanager.awsconnector.models.ProductCodeValues;
+import com.azure.resourcemanager.awsconnector.models.ProductCodeValuesEnumValue;
+import com.azure.resourcemanager.awsconnector.models.StateReason;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated12;
+import com.azure.resourcemanager.awsconnector.models.Tenancy;
+import com.azure.resourcemanager.awsconnector.models.TenancyEnumValue;
+import com.azure.resourcemanager.awsconnector.models.VirtualizationType;
+import com.azure.resourcemanager.awsconnector.models.VirtualizationTypeEnumValue;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Instances CreateOrReplace.
+ */
+public final class Ec2InstancesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Instances_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2Instances_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstancesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Instances()
+ .createOrReplace("c",
+ new Ec2InstanceInner()
+ .withProperties(
+ new Ec2InstanceProperties()
+ .withAwsProperties(new AwsEc2InstanceProperties().withAmiLaunchIndex(27)
+ .withArchitecture(new ArchitectureValuesEnumValue().withValue(ArchitectureValues.ARM64))
+ .withBlockDeviceMappings(
+ Arrays.asList(new InstanceBlockDeviceMapping().withDeviceName("tfaglaaaklzilxzmk")
+ .withEbs(new EbsInstanceBlockDevice()
+ .withAssociatedResource("pgkczdagxihtrkzzaiuzennp")
+ .withAttachTime(OffsetDateTime.parse("2024-10-08T03:49:10.616Z"))
+ .withDeleteOnTermination(true)
+ .withStatus(
+ new AttachmentStatusEnumValue().withValue(AttachmentStatus.ATTACHED))
+ .withVolumeId("ilihhdgfhpylwqnaglcmj")
+ .withVolumeOwnerId("ruylzxnmlundujqdqkqocknldkttka"))))
+ .withBootMode(new BootModeValuesEnumValue().withValue(BootModeValues.LEGACY_BIOS))
+ .withCapacityReservationId("rgxeywdieyjfmp")
+ .withCapacityReservationSpecification(new CapacityReservationSpecificationResponse()
+ .withCapacityReservationPreference(new CapacityReservationPreferenceEnumValue()
+ .withValue(CapacityReservationPreference.NONE))
+ .withCapacityReservationTarget(new CapacityReservationTargetResponse()
+ .withCapacityReservationId("dvdusvbgjrkkuqrelloyysinnzpjb")
+ .withCapacityReservationResourceGroupArn("itnyqqrlujfkasgzbrvljlbh")))
+ .withClientToken("fakeTokenPlaceholder")
+ .withCpuOptions(new CpuOptions()
+ .withAmdSevSnp(new AmdSevSnpSpecificationEnumValue()
+ .withValue(AmdSevSnpSpecification.DISABLED))
+ .withCoreCount(27)
+ .withThreadsPerCore(11))
+ .withCurrentInstanceBootMode(
+ new InstanceBootModeValuesEnumValue().withValue(InstanceBootModeValues.LEGACY_BIOS))
+ .withEbsOptimized(true)
+ .withElasticGpuAssociations(Arrays.asList(
+ new ElasticGpuAssociation().withElasticGpuAssociationId("jmxqiqiyocefwrivbcumzx")
+ .withElasticGpuAssociationState("mkteimwlzs")
+ .withElasticGpuAssociationTime("sosasrnqg")
+ .withElasticGpuId("dnpmhib")))
+ .withElasticInferenceAcceleratorAssociations(
+ Arrays.asList(new ElasticInferenceAcceleratorAssociation()
+ .withElasticInferenceAcceleratorArn("pnbrdzuzjxuwrtpdc")
+ .withElasticInferenceAcceleratorAssociationId("uoout")
+ .withElasticInferenceAcceleratorAssociationState("bwbmjkusisjrxxdonwtxkbgbaxk")
+ .withElasticInferenceAcceleratorAssociationTime(
+ OffsetDateTime.parse("2024-10-08T03:49:10.617Z"))))
+ .withEnaSupport(true)
+ .withEnclaveOptions(new EnclaveOptions().withEnabled(true))
+ .withHibernationOptions(new HibernationOptions().withConfigured(true))
+ .withHypervisor(new HypervisorTypeEnumValue().withValue(HypervisorType.OVM))
+ .withIamInstanceProfile(
+ new IamInstanceProfile().withArn("jvju").withId("kdzthqdiqjcknesajpbplmkynzokr"))
+ .withImageId("oemhjwhbzkbcwocprtn")
+ .withInstanceId("czyyyovcqwce")
+ .withInstanceLifecycle(new InstanceLifecycleTypeEnumValue()
+ .withValue(InstanceLifecycleType.CAPACITY_BLOCK))
+ .withInstanceType(new InstanceTypeEnumValue().withValue(InstanceType.A1_2XLARGE))
+ .withIpv6Address("kuzwkpvttqtjxowkisga")
+ .withKernelId("qqehgoolsvuh")
+ .withKeyName("fakeTokenPlaceholder")
+ .withLaunchTime(OffsetDateTime.parse("2024-10-08T03:49:10.618Z"))
+ .withLicenses(
+ Arrays.asList(new LicenseConfiguration().withLicenseConfigurationArn("q")))
+ .withMaintenanceOptions(new InstanceMaintenanceOptions()
+ .withAutoRecovery(new InstanceAutoRecoveryStateEnumValue()
+ .withValue(InstanceAutoRecoveryState.DEFAULT)))
+ .withMetadataOptions(new InstanceMetadataOptionsResponse()
+ .withHttpEndpoint(new InstanceMetadataEndpointStateEnumValue()
+ .withValue(InstanceMetadataEndpointState.DISABLED))
+ .withHttpProtocolIpv6(new InstanceMetadataProtocolStateEnumValue()
+ .withValue(InstanceMetadataProtocolState.DISABLED))
+ .withHttpPutResponseHopLimit(3)
+ .withHttpTokens(new HttpTokensStateEnumValue().withValue(HttpTokensState.OPTIONAL))
+ .withInstanceMetadataTags(new InstanceMetadataTagsStateEnumValue()
+ .withValue(InstanceMetadataTagsState.DISABLED))
+ .withState(new InstanceMetadataOptionsStateEnumValue()
+ .withValue(InstanceMetadataOptionsState.APPLIED)))
+ .withMonitoring(new Monitoring()
+ .withState(new MonitoringStateEnumValue().withValue(MonitoringState.DISABLED)))
+ .withNetworkInterfaces(
+ Arrays.asList(new InstanceNetworkInterface()
+ .withAssociation(new InstanceNetworkInterfaceAssociation()
+ .withCarrierIp("gyqfkluecfuwebntnygczb")
+ .withCustomerOwnedIp("sw")
+ .withIpOwnerId("fbrkixipyqjnao")
+ .withPublicDnsName("oivnzjavxqmctzvhgmsavgwesabny")
+ .withPublicIp("tojjymqqjmschjp"))
+ .withAttachment(
+ new InstanceNetworkInterfaceAttachment()
+ .withAttachTime(OffsetDateTime.parse("2024-10-08T03:49:10.618Z"))
+ .withAttachmentId("lsqnlzd")
+ .withDeleteOnTermination(true)
+ .withDeviceIndex(11)
+ .withEnaSrdSpecification(
+ new InstanceAttachmentEnaSrdSpecification().withEnaSrdEnabled(true)
+ .withEnaSrdUdpSpecification(
+ new InstanceAttachmentEnaSrdUdpSpecification()
+ .withEnaSrdUdpEnabled(true)))
+ .withNetworkCardIndex(9)
+ .withStatus(new AttachmentStatusEnumValue()
+ .withValue(AttachmentStatus.ATTACHED)))
+ .withConnectionTrackingConfiguration(
+ new ConnectionTrackingSpecificationResponse().withTcpEstablishedTimeout(23)
+ .withUdpStreamTimeout(24)
+ .withUdpTimeout(30))
+ .withDescription("wcdguczvqhelvbuhnx")
+ .withGroups(Arrays
+ .asList(new GroupIdentifier().withGroupId("nwupmxpxrzdroizfewqupyddewi")
+ .withGroupName("gvsaaqihzfcwdmeocclatfqm")))
+ .withInterfaceType("mphomintds")
+ .withIpv4Prefixes(
+ Arrays.asList(new InstanceIpv4Prefix().withIpv4Prefix("ortyghjrffqjz")))
+ .withIpv6Addresses(Arrays.asList(
+ new InstanceIpv6Address().withIpv6Address("z").withIsPrimaryIpv6(true)))
+ .withIpv6Prefixes(Arrays
+ .asList(new InstanceIpv6Prefix().withIpv6Prefix("cstrptdpvmberviuvuqfd")))
+ .withMacAddress("k")
+ .withNetworkInterfaceId("qythf")
+ .withOwnerId("fvjysbetbyrzccspcenkpvi")
+ .withPrivateDnsName("yvorusnuuigavdcqqdxecrkmjmhrf")
+ .withPrivateIpAddress("m")
+ .withPrivateIpAddresses(Arrays.asList(new InstancePrivateIpAddress()
+ .withAssociation(new InstanceNetworkInterfaceAssociation()
+ .withCarrierIp("gyqfkluecfuwebntnygczb")
+ .withCustomerOwnedIp("sw")
+ .withIpOwnerId("fbrkixipyqjnao")
+ .withPublicDnsName("oivnzjavxqmctzvhgmsavgwesabny")
+ .withPublicIp("tojjymqqjmschjp"))
+ .withPrimary(true)
+ .withPrivateDnsName("bdezhkhwoerivtfwgqelrsyiphf")
+ .withPrivateIpAddress("xcqnyrs")))
+ .withSourceDestCheck(true)
+ .withStatus(new NetworkInterfaceStatusEnumValue()
+ .withValue(NetworkInterfaceStatus.ASSOCIATED))
+ .withSubnetId("euocsemlw")
+ .withVpcId("grahbrhjelkewder")))
+ .withOutpostArn("godjddxeidxe")
+ .withPlacement(new Placement().withAffinity("xzseileq")
+ .withAvailabilityZone("vsfvyosolmnchbavxfvtizqptgmeg")
+ .withGroupId("davwvkjoij")
+ .withGroupName("txqgn")
+ .withHostId("mvbshbhxclztfwffsu")
+ .withHostResourceGroupArn("zl")
+ .withPartitionNumber(24)
+ .withSpreadDomain("t")
+ .withTenancy(new TenancyEnumValue().withValue(Tenancy.DEDICATED)))
+ .withPlatform(new PlatformValuesEnumValue().withValue(PlatformValues.WINDOWS))
+ .withPlatformDetails("rcwqyqgcruqjcvzcto")
+ .withPrivateDnsName("ieuhntvllhoojakokyt")
+ .withPrivateDnsNameOptions(
+ new PrivateDnsNameOptionsResponse().withEnableResourceNameDnsAaaaRecord(true)
+ .withEnableResourceNameDnsARecord(true)
+ .withHostnameType(new HostnameTypeEnumValue().withValue(HostnameType.IP_NAME)))
+ .withPrivateIpAddress("uosximzwwopktgyzlathmorgqah")
+ .withProductCodes(
+ Arrays.asList(new ProductCode().withProductCodeId("fakeTokenPlaceholder")
+ .withProductCodeType(
+ new ProductCodeValuesEnumValue().withValue(ProductCodeValues.DEVPAY))))
+ .withPublicDnsName("qkucqmeldgiumuzribitahwft")
+ .withPublicIpAddress("ialohsszgtpuycimtqi")
+ .withRamdiskId("ggkfkl")
+ .withRootDeviceName("dbfwarbazrbzcjnh")
+ .withRootDeviceType(new DeviceTypeEnumValue().withValue(DeviceType.EBS))
+ .withSecurityGroups(
+ Arrays.asList(new GroupIdentifier().withGroupId("nwupmxpxrzdroizfewqupyddewi")
+ .withGroupName("gvsaaqihzfcwdmeocclatfqm")))
+ .withSourceDestCheck(true)
+ .withSpotInstanceRequestId("qiylxsuuinwyq")
+ .withSriovNetSupport("kiffwvajczdtzwcfeefqespn")
+ .withState(new InstanceState().withCode(18)
+ .withName(new InstanceStateNameEnumValue().withValue(InstanceStateName.PENDING)))
+ .withStateReason(
+ new StateReason().withCode("fakeTokenPlaceholder").withMessage("dvgendvpuuzx"))
+ .withStateTransitionReason("arenmfmnvv")
+ .withSubnetId("mgnibedayjllwaidbjh")
+ .withTags(Arrays.asList(new TagAutoGenerated12().withKey("fakeTokenPlaceholder")
+ .withValue("zztbwjxzwgmnjqhegktznmdrqferd")))
+ .withTpmSupport("fvxtckturm")
+ .withUsageOperation("xrctwrcgpcrhlfjzhdvhiovdlcqafq")
+ .withUsageOperationUpdateTime(OffsetDateTime.parse("2024-10-08T03:49:10.619Z"))
+ .withVirtualizationType(
+ new VirtualizationTypeEnumValue().withValue(VirtualizationType.HVM))
+ .withVpcId("g"))
+ .withPublicCloudConnectorsResourceId("shnvqmmslrarjuzdpyhlnfxxp")
+ .withAwsAccountId("hhrjjrfopsrebnklxmr")
+ .withArn("noxwkahrsrcnrpz")
+ .withPublicCloudResourceName("sffqiavopmcwltotrpubudq")
+ .withAwsSourceSchema("tncjfmwlkponefezhigbyno")
+ .withAwsRegion("tcaqttnhykcej")
+ .withAwsTags(mapOf("key2934", "fakeTokenPlaceholder"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Instances_Delete
+
+```java
+/**
+ * Samples for Ec2Instances Delete.
+ */
+public final class Ec2InstancesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Instances_Delete
+ * .json
+ */
+ /**
+ * Sample code: Ec2Instances_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstancesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Instances().delete("c", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Instances_Get
+
+```java
+/**
+ * Samples for Ec2Instances Get.
+ */
+public final class Ec2InstancesGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Instances_Get.
+ * json
+ */
+ /**
+ * Sample code: Ec2Instances_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstancesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Instances().getWithResponse("c", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Instances_List
+
+```java
+/**
+ * Samples for Ec2Instances List.
+ */
+public final class Ec2InstancesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Instances_List.
+ * json
+ */
+ /**
+ * Sample code: Ec2Instances_List.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstancesList(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Instances().list("c", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Instances_Start
+
+```java
+/**
+ * Samples for Ec2Instances Start.
+ */
+public final class Ec2InstancesStartSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Instances_Start.
+ * json
+ */
+ /**
+ * Sample code: Ec2Instances_Start.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstancesStart(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Instances().start("c", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Instances_Stop
+
+```java
+import com.azure.resourcemanager.awsconnector.models.StopEc2InstanceOptions;
+
+/**
+ * Samples for Ec2Instances Stop.
+ */
+public final class Ec2InstancesStopSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Instances_Stop.
+ * json
+ */
+ /**
+ * Sample code: Ec2Instances_Stop.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2InstancesStop(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Instances()
+ .stop("c", new StopEc2InstanceOptions().withForce(true).withHibernate(true),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Ipams_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2IpamProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2IpamProperties;
+import com.azure.resourcemanager.awsconnector.models.IpamOperatingRegion;
+import com.azure.resourcemanager.awsconnector.models.IpamState;
+import com.azure.resourcemanager.awsconnector.models.IpamStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.IpamTier;
+import com.azure.resourcemanager.awsconnector.models.IpamTierEnumValue;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated13;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Ipams CreateOrReplace.
+ */
+public final class Ec2IpamsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Ipams_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2Ipams_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2IpamsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Ipams()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("lhjepajysvu")
+ .withExistingResourceGroup("rgec2Ipam")
+ .withTags(mapOf("key6845", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2IpamProperties()
+ .withAwsProperties(
+ new AwsEc2IpamProperties().withDefaultResourceDiscoveryAssociationId("upvbhujajpxidvdneaxudp")
+ .withDefaultResourceDiscoveryId("vmatfdwggwysxz")
+ .withDescription("suxncf")
+ .withIpamArn("ounjgxqwlmalbxgwqepaivhpqm")
+ .withIpamId("baiefjd")
+ .withIpamRegion("dfdcpbefpcajoep")
+ .withOperatingRegions(Arrays.asList(new IpamOperatingRegion().withRegionName("racqmjs")))
+ .withOwnerId("sbcvakmustluzumdv")
+ .withPrivateDefaultScopeId("sgytzjkrmsnzccmbos")
+ .withPublicDefaultScopeId("uqxvzoqzwfiaerfqkufw")
+ .withResourceDiscoveryAssociationCount(28)
+ .withScopeCount(8)
+ .withState(new IpamStateEnumValue().withValue(IpamState.CREATE_COMPLETE))
+ .withStateMessage("wehaarwg")
+ .withTags(Arrays.asList(
+ new TagAutoGenerated13().withKey("fakeTokenPlaceholder").withValue("jnzubqdwmuxxyakaosx")))
+ .withTier(new IpamTierEnumValue().withValue(IpamTier.ADVANCED)))
+ .withPublicCloudConnectorsResourceId("irfihvsxrgyhmubmuieufe")
+ .withAwsAccountId("fyceaucatzscmtkaw")
+ .withArn("gcjcnzkmoauyi")
+ .withPublicCloudResourceName("y")
+ .withAwsSourceSchema("ivdglskrjwzg")
+ .withAwsRegion("rvtevmqvjnnignaaojkgqgzrsi")
+ .withAwsTags(mapOf("key4146", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Ipams_Delete
+
+```java
+/**
+ * Samples for Ec2Ipams Delete.
+ */
+public final class Ec2IpamsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Ipams_Delete.
+ * json
+ */
+ /**
+ * Sample code: Ec2Ipams_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2IpamsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Ipams()
+ .delete("rgec2Ipam",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Ipams_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Ipams GetByResourceGroup.
+ */
+public final class Ec2IpamsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Ipams_Get.json
+ */
+ /**
+ * Sample code: Ec2Ipams_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2IpamsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Ipams()
+ .getByResourceGroupWithResponse("rgec2Ipam",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Ipams_List
+
+```java
+/**
+ * Samples for Ec2Ipams List.
+ */
+public final class Ec2IpamsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Ipams_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2Ipams_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2IpamsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Ipams().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Ipams_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Ipams ListByResourceGroup.
+ */
+public final class Ec2IpamsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Ipams_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2Ipams_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2IpamsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Ipams().listByResourceGroup("rgec2Ipam", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Ipams_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2Ipam;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Ipams Update.
+ */
+public final class Ec2IpamsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Ipams_Update.
+ * json
+ */
+ /**
+ * Sample code: Ec2Ipams_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2IpamsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2Ipam resource = manager.ec2Ipams()
+ .getByResourceGroupWithResponse("rgec2Ipam",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1619", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2KeyPairs_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2KeyPairProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2KeyPairProperties;
+import com.azure.resourcemanager.awsconnector.models.KeyFormat;
+import com.azure.resourcemanager.awsconnector.models.KeyType;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated14;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2KeyPairs CreateOrReplace.
+ */
+public final class Ec2KeyPairsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2KeyPairs_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2KeyPairs_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2KeyPairsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2KeyPairs()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("okgykmqgdqfktczzwnisgblxjor")
+ .withExistingResourceGroup("rgec2KeyPair")
+ .withTags(mapOf("key7076", "fakeTokenPlaceholder"))
+ .withProperties(
+ new Ec2KeyPairProperties()
+ .withAwsProperties(new AwsEc2KeyPairProperties().withKeyFingerprint("fakeTokenPlaceholder")
+ .withKeyFormat(KeyFormat.PEM)
+ .withKeyName("fakeTokenPlaceholder")
+ .withKeyPairId("fakeTokenPlaceholder")
+ .withKeyType(KeyType.ED25519)
+ .withPublicKeyMaterial("fakeTokenPlaceholder")
+ .withTags(Arrays.asList(new TagAutoGenerated14().withKey("fakeTokenPlaceholder")
+ .withValue("fcqkvmxnvgkszsjglbmc"))))
+ .withPublicCloudConnectorsResourceId("dtqfffijdvwrjascztihbhcjfo")
+ .withAwsAccountId("iamyich")
+ .withArn("hbplblilwwscgwiaifygy")
+ .withPublicCloudResourceName("nyywppatxodspls")
+ .withAwsSourceSchema("qbl")
+ .withAwsRegion("zkxhveyqnzcmihgmancphtwumisld")
+ .withAwsTags(mapOf("key6629", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2KeyPairs_Delete
+
+```java
+/**
+ * Samples for Ec2KeyPairs Delete.
+ */
+public final class Ec2KeyPairsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2KeyPairs_Delete.
+ * json
+ */
+ /**
+ * Sample code: Ec2KeyPairs_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2KeyPairsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2KeyPairs()
+ .delete("rgec2KeyPair",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2KeyPairs_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2KeyPairs GetByResourceGroup.
+ */
+public final class Ec2KeyPairsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2KeyPairs_Get.
+ * json
+ */
+ /**
+ * Sample code: Ec2KeyPairs_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2KeyPairsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2KeyPairs()
+ .getByResourceGroupWithResponse("rgec2KeyPair",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2KeyPairs_List
+
+```java
+/**
+ * Samples for Ec2KeyPairs List.
+ */
+public final class Ec2KeyPairsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2KeyPairs_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2KeyPairs_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2KeyPairsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2KeyPairs().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2KeyPairs_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2KeyPairs ListByResourceGroup.
+ */
+public final class Ec2KeyPairsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2KeyPairs_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2KeyPairs_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2KeyPairsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2KeyPairs().listByResourceGroup("rgec2KeyPair", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2KeyPairs_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2KeyPair;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2KeyPairs Update.
+ */
+public final class Ec2KeyPairsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2KeyPairs_Update.
+ * json
+ */
+ /**
+ * Sample code: Ec2KeyPairs_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2KeyPairsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2KeyPair resource = manager.ec2KeyPairs()
+ .getByResourceGroupWithResponse("rgec2KeyPair",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key7068", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2NetworkAcls_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2NetworkAclProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2NetworkAclProperties;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated15;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2NetworkAcls CreateOrReplace.
+ */
+public final class Ec2NetworkAclsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkAcls_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2NetworkAcls_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2NetworkAclsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkAcls()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("fshtit")
+ .withExistingResourceGroup("rgec2NetworkAcl")
+ .withTags(mapOf("key7602", "fakeTokenPlaceholder"))
+ .withProperties(
+ new Ec2NetworkAclProperties()
+ .withAwsProperties(new AwsEc2NetworkAclProperties().withId("qgxcaonshnjzgtrwpbtgtnec")
+ .withTags(Arrays.asList(
+ new TagAutoGenerated15().withKey("fakeTokenPlaceholder").withValue("szjckvzlsvasj")))
+ .withVpcId("wifperjiuulltgxcljqwnaeyscd"))
+ .withPublicCloudConnectorsResourceId("thejbzeletryigazixejsz")
+ .withAwsAccountId("nwnjrjumgvvtfndyaxyiwbugmdk")
+ .withArn("mwwchyidvtcm")
+ .withPublicCloudResourceName("dniirwtrtuvjlcdcjq")
+ .withAwsSourceSchema("hqiutsyaxzitfwtekhw")
+ .withAwsRegion("zmntebskjciytwfcjyj")
+ .withAwsTags(mapOf("key8049", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2NetworkAcls_Delete
+
+```java
+/**
+ * Samples for Ec2NetworkAcls Delete.
+ */
+public final class Ec2NetworkAclsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkAcls_Delete.json
+ */
+ /**
+ * Sample code: Ec2NetworkAcls_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2NetworkAclsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkAcls()
+ .delete("rgec2NetworkAcl",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2NetworkAcls_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2NetworkAcls GetByResourceGroup.
+ */
+public final class Ec2NetworkAclsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2NetworkAcls_Get.
+ * json
+ */
+ /**
+ * Sample code: Ec2NetworkAcls_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2NetworkAclsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkAcls()
+ .getByResourceGroupWithResponse("rgec2NetworkAcl",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2NetworkAcls_List
+
+```java
+/**
+ * Samples for Ec2NetworkAcls List.
+ */
+public final class Ec2NetworkAclsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkAcls_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2NetworkAcls_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2NetworkAclsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkAcls().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2NetworkAcls_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2NetworkAcls ListByResourceGroup.
+ */
+public final class Ec2NetworkAclsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkAcls_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2NetworkAcls_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2NetworkAclsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkAcls().listByResourceGroup("rgec2NetworkAcl", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2NetworkAcls_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2NetworkAcl;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2NetworkAcls Update.
+ */
+public final class Ec2NetworkAclsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkAcls_Update.json
+ */
+ /**
+ * Sample code: Ec2NetworkAcls_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2NetworkAclsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2NetworkAcl resource = manager.ec2NetworkAcls()
+ .getByResourceGroupWithResponse("rgec2NetworkAcl",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key5032", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2NetworkInterfaces_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2NetworkInterfaceProperties;
+import com.azure.resourcemanager.awsconnector.models.ConnectionTrackingSpecification;
+import com.azure.resourcemanager.awsconnector.models.Ec2NetworkInterfaceProperties;
+import com.azure.resourcemanager.awsconnector.models.InstanceIpv6AddressAutoGenerated;
+import com.azure.resourcemanager.awsconnector.models.Ipv4PrefixSpecification;
+import com.azure.resourcemanager.awsconnector.models.Ipv6PrefixSpecification;
+import com.azure.resourcemanager.awsconnector.models.PrivateIpAddressSpecification;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated16;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2NetworkInterfaces CreateOrReplace.
+ */
+public final class Ec2NetworkInterfacesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkInterfaces_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2NetworkInterfaces_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2NetworkInterfacesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkInterfaces()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("lagtstrmaffl")
+ .withExistingResourceGroup("rgec2NetworkInterface")
+ .withTags(mapOf("key2520", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2NetworkInterfaceProperties()
+ .withAwsProperties(new AwsEc2NetworkInterfaceProperties()
+ .withConnectionTrackingSpecification(
+ new ConnectionTrackingSpecification().withTcpEstablishedTimeout(17)
+ .withUdpStreamTimeout(8)
+ .withUdpTimeout(23))
+ .withDescription("rjfmatpnlpzafpjsvdifepkeompzpz")
+ .withEnablePrimaryIpv6(true)
+ .withGroupSet(Arrays.asList("dqnxzfzzixpqqapipgobuepnptfi"))
+ .withId("djkpriel")
+ .withInterfaceType("osohhzoujznxwq")
+ .withIpv4PrefixCount(18)
+ .withIpv4Prefixes(Arrays.asList(new Ipv4PrefixSpecification().withIpv4Prefix("gptczjajfvxavzpalq")))
+ .withIpv6AddressCount(21)
+ .withIpv6Addresses(
+ Arrays.asList(new InstanceIpv6AddressAutoGenerated().withIpv6Address("yltzjtkgfhbhokimzn")))
+ .withIpv6PrefixCount(1)
+ .withIpv6Prefixes(
+ Arrays.asList(new Ipv6PrefixSpecification().withIpv6Prefix("srpldhvaafcozyarpechevrnxlf")))
+ .withPrimaryIpv6Address("uoblo")
+ .withPrimaryPrivateIpAddress("qyowqxftdeptwmjwfa")
+ .withPrivateIpAddress("qicwhumw")
+ .withPrivateIpAddresses(Arrays.asList(new PrivateIpAddressSpecification().withPrimary(true)
+ .withPrivateIpAddress("mmkedmvsclcwfvlvx")))
+ .withSecondaryPrivateIpAddressCount(9)
+ .withSecondaryPrivateIpAddresses(Arrays.asList("mkvwjalereuiy"))
+ .withSourceDestCheck(true)
+ .withSubnetId("wfyytldstgkdpoffxak")
+ .withTags(Arrays
+ .asList(new TagAutoGenerated16().withKey("fakeTokenPlaceholder").withValue("zlzzwcqgyuoe")))
+ .withVpcId("ykqkegxxhqsw"))
+ .withPublicCloudConnectorsResourceId("ottcocnvajfifabmlw")
+ .withAwsAccountId("gjylibjqfzkkx")
+ .withArn("nmgqcimbhzksweqtns")
+ .withPublicCloudResourceName("pjjwxtuejzskysxlytlrcqegfkuydf")
+ .withAwsSourceSchema("smaakwcpvp")
+ .withAwsRegion("dpghaxzupmkfwbvir")
+ .withAwsTags(mapOf("key190", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2NetworkInterfaces_Delete
+
+```java
+/**
+ * Samples for Ec2NetworkInterfaces Delete.
+ */
+public final class Ec2NetworkInterfacesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkInterfaces_Delete.json
+ */
+ /**
+ * Sample code: Ec2NetworkInterfaces_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2NetworkInterfacesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkInterfaces()
+ .delete("rgec2NetworkInterface",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2NetworkInterfaces_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2NetworkInterfaces GetByResourceGroup.
+ */
+public final class Ec2NetworkInterfacesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkInterfaces_Get.json
+ */
+ /**
+ * Sample code: Ec2NetworkInterfaces_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2NetworkInterfacesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkInterfaces()
+ .getByResourceGroupWithResponse("rgec2NetworkInterface",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2NetworkInterfaces_List
+
+```java
+/**
+ * Samples for Ec2NetworkInterfaces List.
+ */
+public final class Ec2NetworkInterfacesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkInterfaces_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2NetworkInterfaces_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2NetworkInterfacesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkInterfaces().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2NetworkInterfaces_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2NetworkInterfaces ListByResourceGroup.
+ */
+public final class Ec2NetworkInterfacesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkInterfaces_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2NetworkInterfaces_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2NetworkInterfacesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2NetworkInterfaces().listByResourceGroup("rgec2NetworkInterface", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2NetworkInterfaces_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2NetworkInterface;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2NetworkInterfaces Update.
+ */
+public final class Ec2NetworkInterfacesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2NetworkInterfaces_Update.json
+ */
+ /**
+ * Sample code: Ec2NetworkInterfaces_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2NetworkInterfacesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2NetworkInterface resource = manager.ec2NetworkInterfaces()
+ .getByResourceGroupWithResponse("rgec2NetworkInterface",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key6326", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2RouteTables_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2RouteTableProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2RouteTableProperties;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated17;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2RouteTables CreateOrReplace.
+ */
+public final class Ec2RouteTablesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2RouteTables_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2RouteTables_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2RouteTablesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2RouteTables()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("hovrzjhgmyvotekfhnhfmvlcak")
+ .withExistingResourceGroup("rgec2RouteTable")
+ .withTags(mapOf("key8794", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2RouteTableProperties()
+ .withAwsProperties(new AwsEc2RouteTableProperties().withRouteTableId("wjkircnwaktkmbnrmuglladvcdghmn")
+ .withTags(Arrays.asList(new TagAutoGenerated17().withKey("fakeTokenPlaceholder")
+ .withValue("ywbmagghbowtrgxkmnquatuohxj")))
+ .withVpcId("ndnaspemjnmztnyriemuybzp"))
+ .withPublicCloudConnectorsResourceId("kaqsj")
+ .withAwsAccountId("xlalfcqnhp")
+ .withArn("eyazamslrmbbffijotyuugdepfsn")
+ .withPublicCloudResourceName("ierypwmwselkslavwkgcmz")
+ .withAwsSourceSchema("usgtqolcmcjynbdhavnneb")
+ .withAwsRegion("tmqwjtpadpygxhke")
+ .withAwsTags(mapOf("key7743", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2RouteTables_Delete
+
+```java
+/**
+ * Samples for Ec2RouteTables Delete.
+ */
+public final class Ec2RouteTablesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2RouteTables_Delete.json
+ */
+ /**
+ * Sample code: Ec2RouteTables_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2RouteTablesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2RouteTables()
+ .delete("rgec2RouteTable",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2RouteTables_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2RouteTables GetByResourceGroup.
+ */
+public final class Ec2RouteTablesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2RouteTables_Get.
+ * json
+ */
+ /**
+ * Sample code: Ec2RouteTables_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2RouteTablesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2RouteTables()
+ .getByResourceGroupWithResponse("rgec2RouteTable",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2RouteTables_List
+
+```java
+/**
+ * Samples for Ec2RouteTables List.
+ */
+public final class Ec2RouteTablesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2RouteTables_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2RouteTables_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2RouteTablesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2RouteTables().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2RouteTables_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2RouteTables ListByResourceGroup.
+ */
+public final class Ec2RouteTablesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2RouteTables_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2RouteTables_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2RouteTablesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2RouteTables().listByResourceGroup("rgec2RouteTable", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2RouteTables_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2RouteTable;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2RouteTables Update.
+ */
+public final class Ec2RouteTablesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2RouteTables_Update.json
+ */
+ /**
+ * Sample code: Ec2RouteTables_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2RouteTablesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2RouteTable resource = manager.ec2RouteTables()
+ .getByResourceGroupWithResponse("rgec2RouteTable",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key9656", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2SecurityGroups_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2SecurityGroupProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2SecurityGroupProperties;
+import com.azure.resourcemanager.awsconnector.models.IpPermission;
+import com.azure.resourcemanager.awsconnector.models.IpRange;
+import com.azure.resourcemanager.awsconnector.models.Ipv6Range;
+import com.azure.resourcemanager.awsconnector.models.PrefixListId;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated18;
+import com.azure.resourcemanager.awsconnector.models.UserIdGroupPair;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2SecurityGroups CreateOrReplace.
+ */
+public final class Ec2SecurityGroupsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2SecurityGroups_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2SecurityGroups_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2SecurityGroupsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2SecurityGroups()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("vzuwiygrafixnatwfk")
+ .withExistingResourceGroup("rgec2SecurityGroup")
+ .withTags(mapOf("key9265", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2SecurityGroupProperties()
+ .withAwsProperties(new AwsEc2SecurityGroupProperties().withDescription("hrrgskumwbylhgekdhngxjvwdnwt")
+ .withGroupId("ljankmjnfyn")
+ .withGroupName("btdfjlqbavbhlssltk")
+ .withIpPermissions(Arrays.asList(new IpPermission().withFromPort(20)
+ .withIpProtocol("kgjdillfenc")
+ .withIpRanges(Arrays.asList(new IpRange().withCidrIp("bvmbvmljqvxtixhffwasjzntbuc")
+ .withDescription("shzjegnqjhifwjai")))
+ .withIpv6Ranges(Arrays.asList(
+ new Ipv6Range().withCidrIpv6("uxlvmqqyfplqdqzolxmmnclvmtd").withDescription("iqaupyjrvko")))
+ .withPrefixListIds(Arrays.asList(new PrefixListId().withDescription("chukmrsgeaica")
+ .withPrefixListId("abvyhxeqhgiuwfmdproas")))
+ .withToPort(22)
+ .withUserIdGroupPairs(
+ Arrays.asList(new UserIdGroupPair().withDescription("ltskpjkztpi")
+ .withGroupId("laktgsfwgfj")
+ .withGroupName("rrnebynwgsv")
+ .withPeeringStatus("t")
+ .withUserId("chhl")
+ .withVpcId("jxcofqkxxcehakoymxojgpra")
+ .withVpcPeeringConnectionId("vdqrycsnfuwkgftprwierfwv")))))
+ .withIpPermissionsEgress(Arrays.asList(new IpPermission().withFromPort(20)
+ .withIpProtocol("kgjdillfenc")
+ .withIpRanges(Arrays.asList(new IpRange().withCidrIp("bvmbvmljqvxtixhffwasjzntbuc")
+ .withDescription("shzjegnqjhifwjai")))
+ .withIpv6Ranges(Arrays.asList(
+ new Ipv6Range().withCidrIpv6("uxlvmqqyfplqdqzolxmmnclvmtd").withDescription("iqaupyjrvko")))
+ .withPrefixListIds(Arrays.asList(new PrefixListId().withDescription("chukmrsgeaica")
+ .withPrefixListId("abvyhxeqhgiuwfmdproas")))
+ .withToPort(22)
+ .withUserIdGroupPairs(Arrays.asList(new UserIdGroupPair().withDescription("ltskpjkztpi")
+ .withGroupId("laktgsfwgfj")
+ .withGroupName("rrnebynwgsv")
+ .withPeeringStatus("t")
+ .withUserId("chhl")
+ .withVpcId("jxcofqkxxcehakoymxojgpra")
+ .withVpcPeeringConnectionId("vdqrycsnfuwkgftprwierfwv")))))
+ .withOwnerId("zjetpuydwcwvcujxzfp")
+ .withTags(
+ Arrays.asList(new TagAutoGenerated18().withKey("fakeTokenPlaceholder").withValue("jflpondfk")))
+ .withVpcId("prgpmjbyqcuinimbjrzfmpmme"))
+ .withPublicCloudConnectorsResourceId("fuzo")
+ .withAwsAccountId("opjbipitrztwvqiwhvypn")
+ .withArn("wmn")
+ .withPublicCloudResourceName("laxwpziyjookzz")
+ .withAwsSourceSchema("qdcuf")
+ .withAwsRegion("hqrasnkghl")
+ .withAwsTags(mapOf("key5646", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2SecurityGroups_Delete
+
+```java
+/**
+ * Samples for Ec2SecurityGroups Delete.
+ */
+public final class Ec2SecurityGroupsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2SecurityGroups_Delete.json
+ */
+ /**
+ * Sample code: Ec2SecurityGroups_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SecurityGroupsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2SecurityGroups()
+ .delete("rgec2SecurityGroup",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2SecurityGroups_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2SecurityGroups GetByResourceGroup.
+ */
+public final class Ec2SecurityGroupsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2SecurityGroups_Get.json
+ */
+ /**
+ * Sample code: Ec2SecurityGroups_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SecurityGroupsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2SecurityGroups()
+ .getByResourceGroupWithResponse("rgec2SecurityGroup",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2SecurityGroups_List
+
+```java
+/**
+ * Samples for Ec2SecurityGroups List.
+ */
+public final class Ec2SecurityGroupsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2SecurityGroups_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2SecurityGroups_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2SecurityGroupsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2SecurityGroups().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2SecurityGroups_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2SecurityGroups ListByResourceGroup.
+ */
+public final class Ec2SecurityGroupsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2SecurityGroups_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2SecurityGroups_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2SecurityGroupsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2SecurityGroups().listByResourceGroup("rgec2SecurityGroup", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2SecurityGroups_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2SecurityGroup;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2SecurityGroups Update.
+ */
+public final class Ec2SecurityGroupsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2SecurityGroups_Update.json
+ */
+ /**
+ * Sample code: Ec2SecurityGroups_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SecurityGroupsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2SecurityGroup resource = manager.ec2SecurityGroups()
+ .getByResourceGroupWithResponse("rgec2SecurityGroup",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key3161", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Snapshots_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2SnapshotProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2SnapshotProperties;
+import com.azure.resourcemanager.awsconnector.models.SnapshotState;
+import com.azure.resourcemanager.awsconnector.models.SnapshotStateEnumValue;
+import com.azure.resourcemanager.awsconnector.models.SseType;
+import com.azure.resourcemanager.awsconnector.models.SseTypeEnumValue;
+import com.azure.resourcemanager.awsconnector.models.StorageTier;
+import com.azure.resourcemanager.awsconnector.models.StorageTierEnumValue;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated19;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Snapshots CreateOrReplace.
+ */
+public final class Ec2SnapshotsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Snapshots_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2Snapshots_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SnapshotsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Snapshots()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("kqbtvnmdasfajwylafmkah")
+ .withExistingResourceGroup("rgec2Snapshot")
+ .withTags(mapOf("key9392", "fakeTokenPlaceholder"))
+ .withProperties(
+ new Ec2SnapshotProperties()
+ .withAwsProperties(new AwsEc2SnapshotProperties().withDataEncryptionKeyId("fakeTokenPlaceholder")
+ .withDescription("tsduasxksmdr")
+ .withEncrypted(true)
+ .withKmsKeyId("fakeTokenPlaceholder")
+ .withOutpostArn("vpqkamzadulbg")
+ .withOwnerAlias("bmfwdqpzxg")
+ .withOwnerId("xudlgprkedlmxatpupwvaknlkxfs")
+ .withProgress("ecdblvtjkixoklgjh")
+ .withRestoreExpiryTime(OffsetDateTime.parse("2024-10-08T03:53:51.251Z"))
+ .withSnapshotId("lpcr")
+ .withSseType(new SseTypeEnumValue().withValue(SseType.NONE))
+ .withStartTime(OffsetDateTime.parse("2024-10-08T03:53:51.251Z"))
+ .withState(new SnapshotStateEnumValue().withValue(SnapshotState.COMPLETED))
+ .withStateMessage("nogwovxkgpjylsijzipkpqzxpvjh")
+ .withStorageTier(new StorageTierEnumValue().withValue(StorageTier.ARCHIVE))
+ .withTags(
+ Arrays.asList(new TagAutoGenerated19().withKey("fakeTokenPlaceholder").withValue("vjhh")))
+ .withVolumeId("rzepawgzsvqncqbpjxnijhwofbgc")
+ .withVolumeSize(3))
+ .withPublicCloudConnectorsResourceId("bfcselosmakgrkibu")
+ .withAwsAccountId("iizqmtavivxapbfqrqqrauezng")
+ .withArn("z")
+ .withPublicCloudResourceName("eyltdaumfqmdgmnlwpgjhjlavikc")
+ .withAwsSourceSchema("gmzpssyyjoqqnqjxwcluwnyrswywcv")
+ .withAwsRegion("yylufbdgujuqmqwhscnglwsa")
+ .withAwsTags(mapOf("key9124", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Snapshots_Delete
+
+```java
+/**
+ * Samples for Ec2Snapshots Delete.
+ */
+public final class Ec2SnapshotsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Snapshots_Delete
+ * .json
+ */
+ /**
+ * Sample code: Ec2Snapshots_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SnapshotsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Snapshots()
+ .delete("rgec2Snapshot",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Snapshots_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Snapshots GetByResourceGroup.
+ */
+public final class Ec2SnapshotsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Snapshots_Get.
+ * json
+ */
+ /**
+ * Sample code: Ec2Snapshots_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SnapshotsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Snapshots()
+ .getByResourceGroupWithResponse("rgec2Snapshot",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Snapshots_List
+
+```java
+/**
+ * Samples for Ec2Snapshots List.
+ */
+public final class Ec2SnapshotsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Snapshots_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2Snapshots_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2SnapshotsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Snapshots().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Snapshots_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Snapshots ListByResourceGroup.
+ */
+public final class Ec2SnapshotsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Snapshots_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2Snapshots_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2SnapshotsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Snapshots().listByResourceGroup("rgec2Snapshot", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Snapshots_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2Snapshot;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Snapshots Update.
+ */
+public final class Ec2SnapshotsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Snapshots_Update
+ * .json
+ */
+ /**
+ * Sample code: Ec2Snapshots_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SnapshotsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2Snapshot resource = manager.ec2Snapshots()
+ .getByResourceGroupWithResponse("rgec2Snapshot",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key9290", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Subnets_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2SubnetProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2SubnetProperties;
+import com.azure.resourcemanager.awsconnector.models.PrivateDnsNameOptionsOnLaunchModelProperties;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated20;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Subnets CreateOrReplace.
+ */
+public final class Ec2SubnetsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Subnets_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2Subnets_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SubnetsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Subnets()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("zlyeymkfsbtninhfrnvrhxprr")
+ .withExistingResourceGroup("rgec2Subnet")
+ .withTags(mapOf("key8525", "fakeTokenPlaceholder"))
+ .withProperties(
+ new Ec2SubnetProperties()
+ .withAwsProperties(
+ new AwsEc2SubnetProperties().withAssignIpv6AddressOnCreation(true)
+ .withAvailabilityZone("forrknmiozum")
+ .withAvailabilityZoneId("gbjfdurjqxgejgwo")
+ .withCidrBlock("sisksglodnipqskrsfsvkpcrrcy")
+ .withEnableDns64(true)
+ .withEnableLniAtDeviceIndex(1)
+ .withIpv4IpamPoolId("jdpbqiv")
+ .withIpv4NetmaskLength(18)
+ .withIpv6CidrBlock("ayzvyvftxekjogtumuln")
+ .withIpv6CidrBlocks(Arrays.asList("amuwewdpaadfixhakcdaqrjzlskguz"))
+ .withIpv6IpamPoolId("lenenhwtwwet")
+ .withIpv6Native(true)
+ .withIpv6NetmaskLength(16)
+ .withMapPublicIpOnLaunch(true)
+ .withNetworkAclAssociationId("saevhbbbzksuojanmdoizrhyxo")
+ .withOutpostArn("qzuvnwxqc")
+ .withPrivateDnsNameOptionsOnLaunch(new PrivateDnsNameOptionsOnLaunchModelProperties()
+ .withEnableResourceNameDnsAaaaRecord(true)
+ .withEnableResourceNameDnsARecord(true)
+ .withHostnameType("cbuc"))
+ .withSubnetId("vxxbkvimjzmcfoxur")
+ .withTags(Arrays.asList(new TagAutoGenerated20().withKey("fakeTokenPlaceholder")
+ .withValue("bfgzdnenxrviyueqzftrrvu")))
+ .withVpcId("aqqzsoyvmaxfyqddvthvxlhdti"))
+ .withPublicCloudConnectorsResourceId("svkjfvphtfxopebxrcdvwyj")
+ .withAwsAccountId("mmlzefobqbimxcbqwrkitlgfu")
+ .withArn("swrduvxfquidiycxlrijjixfbwb")
+ .withPublicCloudResourceName("p")
+ .withAwsSourceSchema("wyjdcprcwjbw")
+ .withAwsRegion("huifdbndfvqyztfwfclpqlxupzib")
+ .withAwsTags(mapOf("key3667", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Subnets_Delete
+
+```java
+/**
+ * Samples for Ec2Subnets Delete.
+ */
+public final class Ec2SubnetsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Subnets_Delete.
+ * json
+ */
+ /**
+ * Sample code: Ec2Subnets_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SubnetsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Subnets()
+ .delete("rgec2Subnet",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Subnets_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Subnets GetByResourceGroup.
+ */
+public final class Ec2SubnetsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Subnets_Get.json
+ */
+ /**
+ * Sample code: Ec2Subnets_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SubnetsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Subnets()
+ .getByResourceGroupWithResponse("rgec2Subnet",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Subnets_List
+
+```java
+/**
+ * Samples for Ec2Subnets List.
+ */
+public final class Ec2SubnetsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Subnets_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2Subnets_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2SubnetsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Subnets().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Subnets_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Subnets ListByResourceGroup.
+ */
+public final class Ec2SubnetsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Subnets_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2Subnets_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2SubnetsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Subnets().listByResourceGroup("rgec2Subnet", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Subnets_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2Subnet;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Subnets Update.
+ */
+public final class Ec2SubnetsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Subnets_Update.
+ * json
+ */
+ /**
+ * Sample code: Ec2Subnets_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2SubnetsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2Subnet resource = manager.ec2Subnets()
+ .getByResourceGroupWithResponse("rgec2Subnet",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1062", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Volumes_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2VolumeProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2VolumeProperties;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated21;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Volumes CreateOrReplace.
+ */
+public final class Ec2VolumesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Volumes_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2Volumes_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VolumesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Volumes()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("tvdnvkrfzxnahsvnguhrcancxusw")
+ .withExistingResourceGroup("rgec2Volume")
+ .withTags(mapOf("key271", "fakeTokenPlaceholder"))
+ .withProperties(
+ new Ec2VolumeProperties()
+ .withAwsProperties(new AwsEc2VolumeProperties().withAutoEnableIO(true)
+ .withAvailabilityZone("wtzdrwiuscqtvxwi")
+ .withEncrypted(true)
+ .withIops(3)
+ .withKmsKeyId("fakeTokenPlaceholder")
+ .withMultiAttachEnabled(true)
+ .withOutpostArn("umrirqwmsnmeeknbjkph")
+ .withSize(2)
+ .withSnapshotId("upwukogzrkqcaea")
+ .withTags(Arrays.asList(
+ new TagAutoGenerated21().withKey("fakeTokenPlaceholder").withValue("hnfhwndsnhbpnwfv")))
+ .withThroughput(20)
+ .withVolumeId("rdcojpg")
+ .withVolumeType("otkmglqvqws"))
+ .withPublicCloudConnectorsResourceId("fw")
+ .withAwsAccountId("zoosbunhmv")
+ .withArn("evx")
+ .withPublicCloudResourceName("xowgb")
+ .withAwsSourceSchema("wlglq")
+ .withAwsRegion("cw")
+ .withAwsTags(mapOf("key2425", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Volumes_Delete
+
+```java
+/**
+ * Samples for Ec2Volumes Delete.
+ */
+public final class Ec2VolumesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Volumes_Delete.
+ * json
+ */
+ /**
+ * Sample code: Ec2Volumes_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VolumesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Volumes()
+ .delete("rgec2Volume",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Volumes_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Volumes GetByResourceGroup.
+ */
+public final class Ec2VolumesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Volumes_Get.json
+ */
+ /**
+ * Sample code: Ec2Volumes_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VolumesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Volumes()
+ .getByResourceGroupWithResponse("rgec2Volume",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Volumes_List
+
+```java
+/**
+ * Samples for Ec2Volumes List.
+ */
+public final class Ec2VolumesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Volumes_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2Volumes_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VolumesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Volumes().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Volumes_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Volumes ListByResourceGroup.
+ */
+public final class Ec2VolumesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Volumes_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2Volumes_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VolumesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Volumes().listByResourceGroup("rgec2Volume", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Volumes_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2Volume;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Volumes Update.
+ */
+public final class Ec2VolumesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Volumes_Update.
+ * json
+ */
+ /**
+ * Sample code: Ec2Volumes_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VolumesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2Volume resource = manager.ec2Volumes()
+ .getByResourceGroupWithResponse("rgec2Volume",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key2751", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2VpcEndpoints_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2VpcEndpointProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2VpcEndpointProperties;
+import com.azure.resourcemanager.awsconnector.models.VpcEndpointType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2VpcEndpoints CreateOrReplace.
+ */
+public final class Ec2VpcEndpointsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcEndpoints_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2VpcEndpoints_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VpcEndpointsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcEndpoints()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("kkohg")
+ .withExistingResourceGroup("rgec2VPCEndpoint")
+ .withTags(mapOf("key8512", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2VpcEndpointProperties()
+ .withAwsProperties(new AwsEc2VpcEndpointProperties().withCreationTimestamp("wmawquyzuhbnkrveo")
+ .withDnsEntries(Arrays.asList("kenhegadrd"))
+ .withId("xfylmv")
+ .withNetworkInterfaceIds(Arrays.asList("uvzbeqj"))
+ .withPolicyDocument(mapOf())
+ .withPrivateDnsEnabled(true)
+ .withRouteTableIds(Arrays.asList("ybkagmpjwuixbpltpabcrwewbjgj"))
+ .withSecurityGroupIds(Arrays.asList("swfhjyallivwkmzqdyqsgitfilel"))
+ .withServiceName("bltgximadajrfctijpznsmxgy")
+ .withSubnetIds(Arrays.asList("oyfzvlrnugigsjyadmdpjblsgpcxkr"))
+ .withVpcEndpointType(VpcEndpointType.GATEWAY)
+ .withVpcId("ebbnplgbjkbqfifbmbrii"))
+ .withPublicCloudConnectorsResourceId("lyxajxyfvrugpvxchbigrlulomftou")
+ .withAwsAccountId("wtjkq")
+ .withArn("cxdwblbwakjiwxs")
+ .withPublicCloudResourceName("zwgwsjbodssxgzq")
+ .withAwsSourceSchema("mpgbtkugoucwqsqzzchrl")
+ .withAwsRegion("hmnjtlhnkmnlwcuykbighvnvnjc")
+ .withAwsTags(mapOf("key7370", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2VpcEndpoints_Delete
+
+```java
+/**
+ * Samples for Ec2VpcEndpoints Delete.
+ */
+public final class Ec2VpcEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcEndpoints_Delete.json
+ */
+ /**
+ * Sample code: Ec2VpcEndpoints_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcEndpointsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcEndpoints()
+ .delete("rgec2VPCEndpoint",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2VpcEndpoints_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2VpcEndpoints GetByResourceGroup.
+ */
+public final class Ec2VpcEndpointsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2VpcEndpoints_Get
+ * .json
+ */
+ /**
+ * Sample code: Ec2VpcEndpoints_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcEndpointsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcEndpoints()
+ .getByResourceGroupWithResponse("rgec2VPCEndpoint",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2VpcEndpoints_List
+
+```java
+/**
+ * Samples for Ec2VpcEndpoints List.
+ */
+public final class Ec2VpcEndpointsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcEndpoints_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2VpcEndpoints_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VpcEndpointsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcEndpoints().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2VpcEndpoints_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2VpcEndpoints ListByResourceGroup.
+ */
+public final class Ec2VpcEndpointsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcEndpoints_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2VpcEndpoints_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VpcEndpointsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcEndpoints().listByResourceGroup("rgec2VPCEndpoint", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2VpcEndpoints_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2VpcEndpoint;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2VpcEndpoints Update.
+ */
+public final class Ec2VpcEndpointsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcEndpoints_Update.json
+ */
+ /**
+ * Sample code: Ec2VpcEndpoints_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcEndpointsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2VpcEndpoint resource = manager.ec2VpcEndpoints()
+ .getByResourceGroupWithResponse("rgec2VPCEndpoint",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key7567", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2VpcPeeringConnections_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2VpcPeeringConnectionProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2VpcPeeringConnectionProperties;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated23;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2VpcPeeringConnections CreateOrReplace.
+ */
+public final class Ec2VpcPeeringConnectionsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcPeeringConnections_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2VpcPeeringConnections_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VpcPeeringConnectionsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcPeeringConnections()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("lqfmwbb")
+ .withExistingResourceGroup("rgec2VPCPeeringConnection")
+ .withTags(mapOf("key6160", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2VpcPeeringConnectionProperties()
+ .withAwsProperties(new AwsEc2VpcPeeringConnectionProperties().withId("emsfznbbfejdwouyracpg")
+ .withPeerOwnerId("ddjymdvquwsrdt")
+ .withPeerRegion("qcbhjmbddzbcs")
+ .withPeerRoleArn("kaophgngiqxorpifcluz")
+ .withPeerVpcId("ccurncyuawhicumwcxxnmuq")
+ .withTags(Arrays
+ .asList(new TagAutoGenerated23().withKey("fakeTokenPlaceholder").withValue("xgzluroiobmj")))
+ .withVpcId("lkitywfkos"))
+ .withPublicCloudConnectorsResourceId("jlenaffdnxswiytzyfvbfjfghuf")
+ .withAwsAccountId("digeyffuemunjngxz")
+ .withArn("dxhchlgpyvhsexomfqaj")
+ .withPublicCloudResourceName("ackzpztj")
+ .withAwsSourceSchema("pfevychrftkuamvlorm")
+ .withAwsRegion("qgrfrceaszbzvo")
+ .withAwsTags(mapOf("key8493", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2VpcPeeringConnections_Delete
+
+```java
+/**
+ * Samples for Ec2VpcPeeringConnections Delete.
+ */
+public final class Ec2VpcPeeringConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcPeeringConnections_Delete.json
+ */
+ /**
+ * Sample code: Ec2VpcPeeringConnections_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VpcPeeringConnectionsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcPeeringConnections()
+ .delete("rgec2VPCPeeringConnection",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2VpcPeeringConnections_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2VpcPeeringConnections GetByResourceGroup.
+ */
+public final class Ec2VpcPeeringConnectionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcPeeringConnections_Get.json
+ */
+ /**
+ * Sample code: Ec2VpcPeeringConnections_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcPeeringConnectionsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcPeeringConnections()
+ .getByResourceGroupWithResponse("rgec2VPCPeeringConnection",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2VpcPeeringConnections_List
+
+```java
+/**
+ * Samples for Ec2VpcPeeringConnections List.
+ */
+public final class Ec2VpcPeeringConnectionsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcPeeringConnections_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2VpcPeeringConnections_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VpcPeeringConnectionsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcPeeringConnections().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2VpcPeeringConnections_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2VpcPeeringConnections ListByResourceGroup.
+ */
+public final class Ec2VpcPeeringConnectionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcPeeringConnections_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2VpcPeeringConnections_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcPeeringConnectionsListByResourceGroup(
+ com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2VpcPeeringConnections()
+ .listByResourceGroup("rgec2VPCPeeringConnection", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2VpcPeeringConnections_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2VpcPeeringConnection;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2VpcPeeringConnections Update.
+ */
+public final class Ec2VpcPeeringConnectionsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2VpcPeeringConnections_Update.json
+ */
+ /**
+ * Sample code: Ec2VpcPeeringConnections_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ec2VpcPeeringConnectionsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2VpcPeeringConnection resource = manager.ec2VpcPeeringConnections()
+ .getByResourceGroupWithResponse("rgec2VPCPeeringConnection",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key4874", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Vpcs_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEc2VpcProperties;
+import com.azure.resourcemanager.awsconnector.models.Ec2VpcProperties;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated22;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Vpcs CreateOrReplace.
+ */
+public final class Ec2VpcsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Vpcs_CreateOrReplace.json
+ */
+ /**
+ * Sample code: Ec2Vpcs_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Vpcs()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("bcrtgodiyozdsiqbhdvsaaog")
+ .withExistingResourceGroup("rgec2Vpc")
+ .withTags(mapOf("key2430", "fakeTokenPlaceholder"))
+ .withProperties(new Ec2VpcProperties()
+ .withAwsProperties(new AwsEc2VpcProperties().withCidrBlock("amstuguadqkmlmofdszmxhgssf")
+ .withCidrBlockAssociations(Arrays.asList("ykwdexxzxjxowuuawym"))
+ .withDefaultNetworkAcl("lhtepidfpfsyxksnvekueeyvw")
+ .withDefaultSecurityGroup("qtqgizvsvzdqxmbwwpmtcnqlfuh")
+ .withEnableDnsHostnames(true)
+ .withEnableDnsSupport(true)
+ .withInstanceTenancy("haqdsdkgbjmnwdgamqs")
+ .withIpv4IpamPoolId("ldzbfvpzpwudqtdyb")
+ .withIpv4NetmaskLength(21)
+ .withIpv6CidrBlocks(Arrays.asList("q"))
+ .withTags(Arrays.asList(
+ new TagAutoGenerated22().withKey("fakeTokenPlaceholder").withValue("tqvkxdrwsaxvxwckrpqk")))
+ .withVpcId("wqqqqmtbgzmdfmkiaoyjdkavuzzzzw"))
+ .withPublicCloudConnectorsResourceId("hpzdeuzmjfwatmynigq")
+ .withAwsAccountId("vskthos")
+ .withArn("isskkecektndkosbruasgvkakzf")
+ .withPublicCloudResourceName("qjwdilmlbbam")
+ .withAwsSourceSchema("vnjplxwhapuaydjjdqiaqfvbfjam")
+ .withAwsRegion("paraxj")
+ .withAwsTags(mapOf("key96", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Ec2Vpcs_Delete
+
+```java
+/**
+ * Samples for Ec2Vpcs Delete.
+ */
+public final class Ec2VpcsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Vpcs_Delete.json
+ */
+ /**
+ * Sample code: Ec2Vpcs_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Vpcs()
+ .delete("rgec2Vpc", "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Vpcs_GetByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Vpcs GetByResourceGroup.
+ */
+public final class Ec2VpcsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Vpcs_Get.json
+ */
+ /**
+ * Sample code: Ec2Vpcs_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Vpcs()
+ .getByResourceGroupWithResponse("rgec2Vpc",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Vpcs_List
+
+```java
+/**
+ * Samples for Ec2Vpcs List.
+ */
+public final class Ec2VpcsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Vpcs_ListBySubscription.json
+ */
+ /**
+ * Sample code: Ec2Vpcs_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Vpcs().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Vpcs_ListByResourceGroup
+
+```java
+/**
+ * Samples for Ec2Vpcs ListByResourceGroup.
+ */
+public final class Ec2VpcsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * Ec2Vpcs_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Ec2Vpcs_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ec2Vpcs().listByResourceGroup("rgec2Vpc", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Ec2Vpcs_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.Ec2Vpc;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Ec2Vpcs Update.
+ */
+public final class Ec2VpcsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/Ec2Vpcs_Update.json
+ */
+ /**
+ * Sample code: Ec2Vpcs_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ec2VpcsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ Ec2Vpc resource = manager.ec2Vpcs()
+ .getByResourceGroupWithResponse("rgec2Vpc",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key5864", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcrImageDetails_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEcrImageDetailProperties;
+import com.azure.resourcemanager.awsconnector.models.EcrImageDetailProperties;
+import com.azure.resourcemanager.awsconnector.models.ImageScanFindingsSummary;
+import com.azure.resourcemanager.awsconnector.models.ImageScanStatus;
+import com.azure.resourcemanager.awsconnector.models.ScanStatus;
+import com.azure.resourcemanager.awsconnector.models.ScanStatusEnumValue;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcrImageDetails CreateOrReplace.
+ */
+public final class EcrImageDetailsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrImageDetails_CreateOrReplace.json
+ */
+ /**
+ * Sample code: EcrImageDetails_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecrImageDetailsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrImageDetails()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("mpxszpyclsniahaoqerqewrzxyzcdt")
+ .withExistingResourceGroup("rgecrImageDetail")
+ .withTags(mapOf("key9132", "fakeTokenPlaceholder"))
+ .withProperties(new EcrImageDetailProperties()
+ .withAwsProperties(new AwsEcrImageDetailProperties().withArtifactMediaType("ciuahpzw")
+ .withImageDigest("mfgr")
+ .withImageManifestMediaType("arzsyssziqvvryqc")
+ .withImagePushedAt(OffsetDateTime.parse("2024-10-08T03:51:24.487Z"))
+ .withImageScanFindingsSummary(
+ new ImageScanFindingsSummary().withFindingSeverityCounts(mapOf("key9764", 10))
+ .withImageScanCompletedAt(OffsetDateTime.parse("2024-10-08T03:51:24.488Z"))
+ .withVulnerabilitySourceUpdatedAt(OffsetDateTime.parse("2024-10-08T03:51:24.488Z")))
+ .withImageScanStatus(new ImageScanStatus().withDescription("kvsqwhxzrnciqybnl")
+ .withStatus(new ScanStatusEnumValue().withValue(ScanStatus.ACTIVE)))
+ .withImageSizeInBytes(18L)
+ .withImageTags(Arrays.asList("bwikpoljnmaoewepiunoltcxlyxd"))
+ .withLastRecordedPullTime(OffsetDateTime.parse("2024-10-08T03:51:24.488Z"))
+ .withRegistryId("xpxtbbeejeosvtcvq")
+ .withRepositoryName("abftxvvazyfekkcpo"))
+ .withPublicCloudConnectorsResourceId("glrdicxdaktwlkvgvxurgww")
+ .withAwsAccountId("yqyxjsfibyscdhyofmyu")
+ .withArn("dhvgwgtedzuiqdvgc")
+ .withPublicCloudResourceName("gijthpfhduauuus")
+ .withAwsSourceSchema("ibsdsdpuiqcwsdxqfn")
+ .withAwsRegion("atlamkemuqwaezwdsuavhaqo")
+ .withAwsTags(mapOf("key4659", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcrImageDetails_Delete
+
+```java
+/**
+ * Samples for EcrImageDetails Delete.
+ */
+public final class EcrImageDetailsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrImageDetails_Delete.json
+ */
+ /**
+ * Sample code: EcrImageDetails_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecrImageDetailsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrImageDetails()
+ .delete("rgecrImageDetail",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcrImageDetails_GetByResourceGroup
+
+```java
+/**
+ * Samples for EcrImageDetails GetByResourceGroup.
+ */
+public final class EcrImageDetailsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/EcrImageDetails_Get
+ * .json
+ */
+ /**
+ * Sample code: EcrImageDetails_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecrImageDetailsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrImageDetails()
+ .getByResourceGroupWithResponse("rgecrImageDetail",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcrImageDetails_List
+
+```java
+/**
+ * Samples for EcrImageDetails List.
+ */
+public final class EcrImageDetailsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrImageDetails_ListBySubscription.json
+ */
+ /**
+ * Sample code: EcrImageDetails_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecrImageDetailsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrImageDetails().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcrImageDetails_ListByResourceGroup
+
+```java
+/**
+ * Samples for EcrImageDetails ListByResourceGroup.
+ */
+public final class EcrImageDetailsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrImageDetails_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: EcrImageDetails_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecrImageDetailsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrImageDetails().listByResourceGroup("rgecrImageDetail", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcrImageDetails_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.EcrImageDetail;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcrImageDetails Update.
+ */
+public final class EcrImageDetailsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrImageDetails_Update.json
+ */
+ /**
+ * Sample code: EcrImageDetails_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecrImageDetailsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ EcrImageDetail resource = manager.ecrImageDetails()
+ .getByResourceGroupWithResponse("rgecrImageDetail",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key5066", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcrRepositories_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEcrRepositoryProperties;
+import com.azure.resourcemanager.awsconnector.models.EcrRepositoryProperties;
+import com.azure.resourcemanager.awsconnector.models.EncryptionConfiguration;
+import com.azure.resourcemanager.awsconnector.models.EncryptionConfigurationEncryptionType;
+import com.azure.resourcemanager.awsconnector.models.ImageScanningConfiguration;
+import com.azure.resourcemanager.awsconnector.models.ImageTagMutability;
+import com.azure.resourcemanager.awsconnector.models.LifecyclePolicy;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated24;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcrRepositories CreateOrReplace.
+ */
+public final class EcrRepositoriesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrRepositories_CreateOrReplace.json
+ */
+ /**
+ * Sample code: EcrRepositories_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecrRepositoriesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrRepositories()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("uxqfbijfanljas")
+ .withExistingResourceGroup("rgecrRepository")
+ .withTags(mapOf("key2390", "fakeTokenPlaceholder"))
+ .withProperties(
+ new EcrRepositoryProperties()
+ .withAwsProperties(
+ new AwsEcrRepositoryProperties().withArn("su")
+ .withEmptyOnDelete(true)
+ .withEncryptionConfiguration(new EncryptionConfiguration()
+ .withEncryptionType(EncryptionConfigurationEncryptionType.AES256)
+ .withKmsKey("fakeTokenPlaceholder"))
+ .withImageScanningConfiguration(new ImageScanningConfiguration().withScanOnPush(true))
+ .withImageTagMutability(ImageTagMutability.IMMUTABLE)
+ .withLifecyclePolicy(new LifecyclePolicy().withLifecyclePolicyText("xvazgvi")
+ .withRegistryId("oluqsenexubjydpyaw"))
+ .withRepositoryName("iuhxuyfxygvumphlcwhnsscudjez")
+ .withRepositoryPolicyText(mapOf())
+ .withRepositoryUri("vmljyfyskxbyjczax")
+ .withTags(Arrays
+ .asList(new TagAutoGenerated24().withKey("fakeTokenPlaceholder").withValue("qu"))))
+ .withPublicCloudConnectorsResourceId("ohtcynikymmfceroreix")
+ .withAwsAccountId("iuomdzpobqirucabbxz")
+ .withArn("djb")
+ .withPublicCloudResourceName("bymfiroqkcgssnop")
+ .withAwsSourceSchema("olwqyujnmxxhxwyp")
+ .withAwsRegion("wliyvzjqcxbpwtgjae")
+ .withAwsTags(mapOf("key7950", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcrRepositories_Delete
+
+```java
+/**
+ * Samples for EcrRepositories Delete.
+ */
+public final class EcrRepositoriesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrRepositories_Delete.json
+ */
+ /**
+ * Sample code: EcrRepositories_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecrRepositoriesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrRepositories()
+ .delete("rgecrRepository",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcrRepositories_GetByResourceGroup
+
+```java
+/**
+ * Samples for EcrRepositories GetByResourceGroup.
+ */
+public final class EcrRepositoriesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/EcrRepositories_Get
+ * .json
+ */
+ /**
+ * Sample code: EcrRepositories_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecrRepositoriesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrRepositories()
+ .getByResourceGroupWithResponse("rgecrRepository",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcrRepositories_List
+
+```java
+/**
+ * Samples for EcrRepositories List.
+ */
+public final class EcrRepositoriesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrRepositories_ListBySubscription.json
+ */
+ /**
+ * Sample code: EcrRepositories_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecrRepositoriesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrRepositories().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcrRepositories_ListByResourceGroup
+
+```java
+/**
+ * Samples for EcrRepositories ListByResourceGroup.
+ */
+public final class EcrRepositoriesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrRepositories_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: EcrRepositories_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecrRepositoriesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecrRepositories().listByResourceGroup("rgecrRepository", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcrRepositories_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.EcrRepository;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcrRepositories Update.
+ */
+public final class EcrRepositoriesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcrRepositories_Update.json
+ */
+ /**
+ * Sample code: EcrRepositories_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecrRepositoriesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ EcrRepository resource = manager.ecrRepositories()
+ .getByResourceGroupWithResponse("rgecrRepository",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key2760", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcsClusters_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEcsClusterProperties;
+import com.azure.resourcemanager.awsconnector.models.CapacityProviderStrategyItem;
+import com.azure.resourcemanager.awsconnector.models.ClusterConfiguration;
+import com.azure.resourcemanager.awsconnector.models.ClusterSettings;
+import com.azure.resourcemanager.awsconnector.models.EcsClusterProperties;
+import com.azure.resourcemanager.awsconnector.models.ExecuteCommandConfiguration;
+import com.azure.resourcemanager.awsconnector.models.ExecuteCommandLogConfiguration;
+import com.azure.resourcemanager.awsconnector.models.ServiceConnectDefaults;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated25;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcsClusters CreateOrReplace.
+ */
+public final class EcsClustersCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsClusters_CreateOrReplace.json
+ */
+ /**
+ * Sample code: EcsClusters_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsClustersCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsClusters()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("jvggofkffzhlultqukgoqtb")
+ .withExistingResourceGroup("rgecsCluster")
+ .withTags(mapOf("key1755", "fakeTokenPlaceholder"))
+ .withProperties(new EcsClusterProperties().withAwsProperties(new AwsEcsClusterProperties()
+ .withArn("mgzeckagdmmepybkhhylkhxzv")
+ .withCapacityProviders(Arrays.asList("rqrmclul"))
+ .withClusterName("eavbe")
+ .withClusterSettings(
+ Arrays.asList(new ClusterSettings().withName("elsikbbzpkzaghwtqd").withValue("gbnpceuced")))
+ .withConfiguration(new ClusterConfiguration().withExecuteCommandConfiguration(
+ new ExecuteCommandConfiguration().withKmsKeyId("fakeTokenPlaceholder")
+ .withLogConfiguration(new ExecuteCommandLogConfiguration().withCloudWatchEncryptionEnabled(true)
+ .withCloudWatchLogGroupName("eiskop")
+ .withS3BucketName("sfcsij")
+ .withS3EncryptionEnabled(true)
+ .withS3KeyPrefix("fakeTokenPlaceholder"))
+ .withLogging("rspegmyokypfqdocdrothsgivaqf")))
+ .withDefaultCapacityProviderStrategy(Arrays.asList(new CapacityProviderStrategyItem().withBase(16)
+ .withCapacityProvider("kttxptzsaauhguaygucxzzvrbriev")
+ .withWeight(1)))
+ .withServiceConnectDefaults(new ServiceConnectDefaults().withNamespace("mwpjrqkazpcetkgyfplp"))
+ .withTags(Arrays
+ .asList(new TagAutoGenerated25().withKey("fakeTokenPlaceholder").withValue("dsvfiamfdrnwqretfcu"))))
+ .withPublicCloudConnectorsResourceId("jbtlcmxmtlcgoxfktpqbi")
+ .withAwsAccountId("emdtbelvualaeqexsrbhvczjsy")
+ .withArn("mpaxeywurctxasgtrtckgeoeqmeec")
+ .withPublicCloudResourceName("nquaerebgaopkptxxbreyhr")
+ .withAwsSourceSchema("dnbeeswitidsf")
+ .withAwsRegion("qwurftmiaqdjvlbsxtmdosiauw")
+ .withAwsTags(mapOf("key3315", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcsClusters_Delete
+
+```java
+/**
+ * Samples for EcsClusters Delete.
+ */
+public final class EcsClustersDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/EcsClusters_Delete.
+ * json
+ */
+ /**
+ * Sample code: EcsClusters_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsClustersDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsClusters()
+ .delete("rgecsCluster",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsClusters_GetByResourceGroup
+
+```java
+/**
+ * Samples for EcsClusters GetByResourceGroup.
+ */
+public final class EcsClustersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/EcsClusters_Get.
+ * json
+ */
+ /**
+ * Sample code: EcsClusters_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsClustersGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsClusters()
+ .getByResourceGroupWithResponse("rgecsCluster",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsClusters_List
+
+```java
+/**
+ * Samples for EcsClusters List.
+ */
+public final class EcsClustersListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsClusters_ListBySubscription.json
+ */
+ /**
+ * Sample code: EcsClusters_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecsClustersListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsClusters().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsClusters_ListByResourceGroup
+
+```java
+/**
+ * Samples for EcsClusters ListByResourceGroup.
+ */
+public final class EcsClustersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsClusters_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: EcsClusters_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecsClustersListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsClusters().listByResourceGroup("rgecsCluster", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsClusters_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.EcsCluster;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcsClusters Update.
+ */
+public final class EcsClustersUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/EcsClusters_Update.
+ * json
+ */
+ /**
+ * Sample code: EcsClusters_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsClustersUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ EcsCluster resource = manager.ecsClusters()
+ .getByResourceGroupWithResponse("rgecsCluster",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key657", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcsServices_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AwsEcsServiceProperties;
+import com.azure.resourcemanager.awsconnector.models.AwsVpcConfiguration;
+import com.azure.resourcemanager.awsconnector.models.AwsVpcConfigurationAssignPublicIp;
+import com.azure.resourcemanager.awsconnector.models.CapacityProviderStrategyItem;
+import com.azure.resourcemanager.awsconnector.models.DeploymentAlarms;
+import com.azure.resourcemanager.awsconnector.models.DeploymentCircuitBreaker;
+import com.azure.resourcemanager.awsconnector.models.DeploymentConfiguration;
+import com.azure.resourcemanager.awsconnector.models.DeploymentController;
+import com.azure.resourcemanager.awsconnector.models.DeploymentControllerType;
+import com.azure.resourcemanager.awsconnector.models.EbsTagSpecification;
+import com.azure.resourcemanager.awsconnector.models.EbsTagSpecificationPropagateTags;
+import com.azure.resourcemanager.awsconnector.models.EcsServiceProperties;
+import com.azure.resourcemanager.awsconnector.models.LaunchType;
+import com.azure.resourcemanager.awsconnector.models.LoadBalancer;
+import com.azure.resourcemanager.awsconnector.models.LogConfiguration;
+import com.azure.resourcemanager.awsconnector.models.NetworkConfiguration;
+import com.azure.resourcemanager.awsconnector.models.PlacementConstraint;
+import com.azure.resourcemanager.awsconnector.models.PlacementConstraintType;
+import com.azure.resourcemanager.awsconnector.models.PlacementStrategy;
+import com.azure.resourcemanager.awsconnector.models.PlacementStrategyType;
+import com.azure.resourcemanager.awsconnector.models.PropagateTags;
+import com.azure.resourcemanager.awsconnector.models.SchedulingStrategy;
+import com.azure.resourcemanager.awsconnector.models.Secret;
+import com.azure.resourcemanager.awsconnector.models.ServiceConnectClientAlias;
+import com.azure.resourcemanager.awsconnector.models.ServiceConnectConfiguration;
+import com.azure.resourcemanager.awsconnector.models.ServiceConnectService;
+import com.azure.resourcemanager.awsconnector.models.ServiceConnectTlsCertificateAuthority;
+import com.azure.resourcemanager.awsconnector.models.ServiceConnectTlsConfiguration;
+import com.azure.resourcemanager.awsconnector.models.ServiceManagedEbsVolumeConfiguration;
+import com.azure.resourcemanager.awsconnector.models.ServiceRegistry;
+import com.azure.resourcemanager.awsconnector.models.ServiceVolumeConfiguration;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated26;
+import com.azure.resourcemanager.awsconnector.models.TimeoutConfiguration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcsServices CreateOrReplace.
+ */
+public final class EcsServicesCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsServices_CreateOrReplace.json
+ */
+ /**
+ * Sample code: EcsServices_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsServicesCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsServices()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("xqpjwxermnqxbnitxykbnjhw")
+ .withExistingResourceGroup("rgecsService")
+ .withTags(mapOf("key8484", "fakeTokenPlaceholder"))
+ .withProperties(new EcsServiceProperties()
+ .withAwsProperties(new AwsEcsServiceProperties()
+ .withCapacityProviderStrategy(Arrays
+ .asList(new CapacityProviderStrategyItem().withBase(4)
+ .withCapacityProvider("wlfpynlwozihqvkgynmdqqmojbs")
+ .withWeight(28)))
+ .withCluster("rdbkmvsugiuvbwkuzagsnrx")
+ .withDeploymentConfiguration(new DeploymentConfiguration()
+ .withAlarms(new DeploymentAlarms().withAlarmNames(Arrays.asList("cibbvixciizruhpdxhpkifpwsaq"))
+ .withEnable(true)
+ .withRollback(true))
+ .withDeploymentCircuitBreaker(
+ new DeploymentCircuitBreaker().withEnable(true).withRollback(true))
+ .withMaximumPercent(14)
+ .withMinimumHealthyPercent(21))
+ .withDeploymentController(new DeploymentController().withType(DeploymentControllerType.CODE_DEPLOY))
+ .withDesiredCount(21)
+ .withEnableEcsManagedTags(true)
+ .withEnableExecuteCommand(true)
+ .withHealthCheckGracePeriodSeconds(1)
+ .withLaunchType(LaunchType.EC2)
+ .withLoadBalancers(Arrays.asList(new LoadBalancer().withContainerName("vjvntpnuzyftbm")
+ .withContainerPort(17)
+ .withLoadBalancerName("eryjxwmbfkms")
+ .withTargetGroupArn("woxbyyccpmqyiy")))
+ .withName("vo")
+ .withNetworkConfiguration(new NetworkConfiguration().withAwsvpcConfiguration(
+ new AwsVpcConfiguration().withAssignPublicIp(AwsVpcConfigurationAssignPublicIp.DISABLED)
+ .withSecurityGroups(Arrays.asList("uoauevqyxylmvje"))
+ .withSubnets(Arrays.asList("gkqxeakxvyw"))))
+ .withPlacementConstraints(Arrays
+ .asList(new PlacementConstraint().withExpression("hxzfzxbfmqqiwgbpgn")
+ .withType(PlacementConstraintType.DISTINCT_INSTANCE)))
+ .withPlacementStrategies(Arrays.asList(new PlacementStrategy().withField("tyrqdzgjrkwfhzwebvqld")
+ .withType(PlacementStrategyType.BINPACK)))
+ .withPlatformVersion("sfsqyvslsustugopfnnzssjli")
+ .withPropagateTags(PropagateTags.SERVICE)
+ .withRole("te")
+ .withSchedulingStrategy(SchedulingStrategy.DAEMON)
+ .withServiceArn("zuuoanjk")
+ .withServiceConnectConfiguration(new ServiceConnectConfiguration().withEnabled(true)
+ .withLogConfiguration(new LogConfiguration()
+ .withLogDriver("xwshxwanyuqrfzboxwfv")
+ .withSecretOptions(
+ Arrays.asList(new Secret().withName("uxsxwquwbafmsmbyyivhsjrjmfpmim")
+ .withValueFrom("jnygsbiroyjlgrhs"))))
+ .withNamespace("tlewpbulbuguuuvq")
+ .withServices(Arrays.asList(new ServiceConnectService()
+ .withClientAliases(Arrays.asList(
+ new ServiceConnectClientAlias().withDnsName("hnnavbjclqhbdebomjoqzo").withPort(16)))
+ .withDiscoveryName("zuhijazofg")
+ .withIngressPortOverride(26)
+ .withPortName("q")
+ .withTimeout(
+ new TimeoutConfiguration().withIdleTimeoutSeconds(11).withPerRequestTimeoutSeconds(22))
+ .withTls(new ServiceConnectTlsConfiguration()
+ .withIssuerCertificateAuthority(
+ new ServiceConnectTlsCertificateAuthority().withAwsPcaAuthorityArn("fqrmk"))
+ .withKmsKey("fakeTokenPlaceholder")
+ .withRoleArn("stdhwuiylmutipeonkolqjnbqelds")))))
+ .withServiceName("lyblywxxfszkgaaornuxliolfbft")
+ .withServiceRegistries(Arrays.asList(new ServiceRegistry().withContainerName("ppbxlxmpdbri")
+ .withContainerPort(7)
+ .withPort(6)
+ .withRegistryArn("qmfm")))
+ .withTags(Arrays.asList(new TagAutoGenerated26().withKey("fakeTokenPlaceholder").withValue("qukd")))
+ .withTaskDefinition("fozrumijzejhpjxeqkmthsswwuden")
+ .withVolumeConfigurations(
+ Arrays
+ .asList(new ServiceVolumeConfiguration()
+ .withManagedEbsVolume(new ServiceManagedEbsVolumeConfiguration().withEncrypted(true)
+ .withFilesystemType("ugwxqcjnrqonyao")
+ .withIops(10)
+ .withKmsKeyId("fakeTokenPlaceholder")
+ .withRoleArn("gdudzczxymgopjjzqubzphgdi")
+ .withSizeInGiB(15)
+ .withSnapshotId("yff")
+ .withTagSpecifications(Arrays.asList(new EbsTagSpecification()
+ .withPropagateTags(EbsTagSpecificationPropagateTags.SERVICE)
+ .withResourceType("tocxgkuiblcccawaenqv")
+ .withTags(Arrays.asList(new TagAutoGenerated26().withKey("fakeTokenPlaceholder")
+ .withValue("qukd")))))
+ .withThroughput(3)
+ .withVolumeType("uwvjfmuzpksfpnfsukbunbuqcwxslx"))
+ .withName("zkqnipaoexthwwot"))))
+ .withPublicCloudConnectorsResourceId("ghyukpeo")
+ .withAwsAccountId("egkrtzylfud")
+ .withArn("advapj")
+ .withPublicCloudResourceName("jumpzlzalckrkaqg")
+ .withAwsSourceSchema("woodigpcfntomkursi")
+ .withAwsRegion("pwmulwhqhosmbthwzammshywxzaxhi")
+ .withAwsTags(mapOf("key3094", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcsServices_Delete
+
+```java
+/**
+ * Samples for EcsServices Delete.
+ */
+public final class EcsServicesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/EcsServices_Delete.
+ * json
+ */
+ /**
+ * Sample code: EcsServices_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsServicesDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsServices()
+ .delete("rgecsService",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsServices_GetByResourceGroup
+
+```java
+/**
+ * Samples for EcsServices GetByResourceGroup.
+ */
+public final class EcsServicesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/EcsServices_Get.
+ * json
+ */
+ /**
+ * Sample code: EcsServices_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsServicesGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsServices()
+ .getByResourceGroupWithResponse("rgecsService",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsServices_List
+
+```java
+/**
+ * Samples for EcsServices List.
+ */
+public final class EcsServicesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsServices_ListBySubscription.json
+ */
+ /**
+ * Sample code: EcsServices_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecsServicesListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsServices().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsServices_ListByResourceGroup
+
+```java
+/**
+ * Samples for EcsServices ListByResourceGroup.
+ */
+public final class EcsServicesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsServices_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: EcsServices_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecsServicesListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsServices().listByResourceGroup("rgecsService", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsServices_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.EcsService;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcsServices Update.
+ */
+public final class EcsServicesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/EcsServices_Update.
+ * json
+ */
+ /**
+ * Sample code: EcsServices_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsServicesUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ EcsService resource = manager.ecsServices()
+ .getByResourceGroupWithResponse("rgecsService",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key8601", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcsTaskDefinitions_CreateOrReplace
+
+```java
+import com.azure.resourcemanager.awsconnector.models.AuthorizationConfig;
+import com.azure.resourcemanager.awsconnector.models.AuthorizationConfigIam;
+import com.azure.resourcemanager.awsconnector.models.AwsEcsTaskDefinitionProperties;
+import com.azure.resourcemanager.awsconnector.models.ContainerDefinition;
+import com.azure.resourcemanager.awsconnector.models.ContainerDependency;
+import com.azure.resourcemanager.awsconnector.models.Device;
+import com.azure.resourcemanager.awsconnector.models.DockerVolumeConfiguration;
+import com.azure.resourcemanager.awsconnector.models.EcsTaskDefinitionProperties;
+import com.azure.resourcemanager.awsconnector.models.EfsVolumeConfiguration;
+import com.azure.resourcemanager.awsconnector.models.EfsVolumeConfigurationTransitEncryption;
+import com.azure.resourcemanager.awsconnector.models.EnvironmentFile;
+import com.azure.resourcemanager.awsconnector.models.EphemeralStorage;
+import com.azure.resourcemanager.awsconnector.models.FSxAuthorizationConfig;
+import com.azure.resourcemanager.awsconnector.models.FSxWindowsFileServerVolumeConfiguration;
+import com.azure.resourcemanager.awsconnector.models.FirelensConfiguration;
+import com.azure.resourcemanager.awsconnector.models.HealthCheck;
+import com.azure.resourcemanager.awsconnector.models.HostEntry;
+import com.azure.resourcemanager.awsconnector.models.HostVolumeProperties;
+import com.azure.resourcemanager.awsconnector.models.InferenceAccelerator;
+import com.azure.resourcemanager.awsconnector.models.KernelCapabilities;
+import com.azure.resourcemanager.awsconnector.models.KeyValuePair;
+import com.azure.resourcemanager.awsconnector.models.LinuxParameters;
+import com.azure.resourcemanager.awsconnector.models.LogConfiguration;
+import com.azure.resourcemanager.awsconnector.models.MountPoint;
+import com.azure.resourcemanager.awsconnector.models.PortMapping;
+import com.azure.resourcemanager.awsconnector.models.PortMappingAppProtocol;
+import com.azure.resourcemanager.awsconnector.models.ProxyConfiguration;
+import com.azure.resourcemanager.awsconnector.models.RepositoryCredentials;
+import com.azure.resourcemanager.awsconnector.models.ResourceRequirement;
+import com.azure.resourcemanager.awsconnector.models.RuntimePlatform;
+import com.azure.resourcemanager.awsconnector.models.Secret;
+import com.azure.resourcemanager.awsconnector.models.SystemControl;
+import com.azure.resourcemanager.awsconnector.models.TagAutoGenerated27;
+import com.azure.resourcemanager.awsconnector.models.TaskDefinitionPlacementConstraint;
+import com.azure.resourcemanager.awsconnector.models.Tmpfs;
+import com.azure.resourcemanager.awsconnector.models.Ulimit;
+import com.azure.resourcemanager.awsconnector.models.Volume;
+import com.azure.resourcemanager.awsconnector.models.VolumeFrom;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcsTaskDefinitions CreateOrReplace.
+ */
+public final class EcsTaskDefinitionsCreateOrReplaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsTaskDefinitions_CreateOrReplace.json
+ */
+ /**
+ * Sample code: EcsTaskDefinitions_CreateOrReplace.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecsTaskDefinitionsCreateOrReplace(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsTaskDefinitions()
+ .define("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
+ .withRegion("hideafehihasfzxdxuqiqubhhzg")
+ .withExistingResourceGroup("rgecsTaskDefinition")
+ .withTags(mapOf("key6626", "fakeTokenPlaceholder"))
+ .withProperties(new EcsTaskDefinitionProperties()
+ .withAwsProperties(new AwsEcsTaskDefinitionProperties()
+ .withContainerDefinitions(Arrays.asList(new ContainerDefinition()
+ .withCommand(Arrays.asList("jowixdtkttvhtvcluhzsqkcszit"))
+ .withCpu(17)
+ .withCredentialSpecs(Arrays.asList("ooravv"))
+ .withDependsOn(
+ Arrays.asList(new ContainerDependency().withCondition("xpmiwcexgnrimsrqyrdlvyyquiccp")
+ .withContainerName("wzcyhuwwutzttwwaopqed")))
+ .withDisableNetworking(true)
+ .withDnsSearchDomains(Arrays.asList("ggzzwoziotxloooklwdsveul"))
+ .withDnsServers(Arrays.asList("ngggprelehukiysguto"))
+ .withDockerSecurityOptions(Arrays.asList("famtfjusztdnyrdzupruqpxufhxp"))
+ .withEntryPoint(Arrays.asList("oaiompurpnjswlqkmvgraiaj"))
+ .withEnvironment(Arrays.asList(new KeyValuePair().withName("edrmixvb").withValue("vdms")))
+ .withEnvironmentFiles(
+ Arrays.asList(new EnvironmentFile().withType("psgsoavpms").withValue("ydkrwlbkbzqdm")))
+ .withEssential(true)
+ .withExtraHosts(Arrays.asList(
+ new HostEntry().withHostname("unpwutrc").withIpAddress("mcsjkhhqbwqesxwcpnnasbzamixath")))
+ .withFirelensConfiguration(new FirelensConfiguration().withType("uuwlwegjjeoorvbgtyzoaeeucp"))
+ .withHealthCheck(new HealthCheck().withCommand(Arrays.asList("ppgfrdhjiytbzqtwkumhmnpsk"))
+ .withInterval(1)
+ .withRetries(11)
+ .withStartPeriod(21)
+ .withTimeout(22))
+ .withHostname("qjkxoayeojuesqmrhe")
+ .withImage("lmgx")
+ .withInteractive(true)
+ .withLinks(Arrays.asList("awgsbfcuoynoomjr"))
+ .withLinuxParameters(new LinuxParameters()
+ .withCapabilities(new KernelCapabilities().withAdd(Arrays.asList("xnobooaglhooafh"))
+ .withDrop(Arrays.asList("uscfx")))
+ .withDevices(Arrays.asList(new Device().withContainerPath("fveecgcpepimcqufoswgvjibavi")
+ .withHostPath("hvwxdqfcbt")
+ .withPermissions(Arrays.asList("yqev"))))
+ .withInitProcessEnabled(true)
+ .withMaxSwap(24)
+ .withSharedMemorySize(1)
+ .withSwappiness(27)
+ .withTmpfs(Arrays.asList(new Tmpfs().withContainerPath("kxvhyrbeu")
+ .withMountOptions(Arrays.asList("lylxsszvvczykn"))
+ .withSize(24))))
+ .withLogConfiguration(new LogConfiguration().withLogDriver("zgkgcxxggqdvrfngjbdapez")
+ .withSecretOptions(
+ Arrays.asList(new Secret().withName("knumytlyulndziptjvgvcpd").withValueFrom("z"))))
+ .withMemory(27)
+ .withMemoryReservation(9)
+ .withMountPoints(Arrays.asList(new MountPoint().withContainerPath("zjtchyyfjv")
+ .withReadOnly(true)
+ .withSourceVolume("mrimyrhpxx")))
+ .withName("tfseewfqlgwjqbkjikv")
+ .withPortMappings(Arrays.asList(new PortMapping().withAppProtocol(PortMappingAppProtocol.GRPC)
+ .withContainerPort(17)
+ .withContainerPortRange("hwshvyttesxemvlis")
+ .withHostPort(13)
+ .withName("nbxxumpmur")
+ .withProtocol("llczx")))
+ .withPrivileged(true)
+ .withPseudoTerminal(true)
+ .withReadonlyRootFilesystem(true)
+ .withRepositoryCredentials(
+ new RepositoryCredentials().withCredentialsParameter("fakeTokenPlaceholder"))
+ .withResourceRequirements(Arrays.asList(
+ new ResourceRequirement().withType("yhtgxyeazgtpygnamvgtrt").withValue("msamplxjlrq")))
+ .withSecrets(Arrays.asList(new Secret().withName("knumytlyulndziptjvgvcpd").withValueFrom("z")))
+ .withStartTimeout(10)
+ .withStopTimeout(24)
+ .withSystemControls(Arrays.asList(
+ new SystemControl().withNamespace("hcwgpftfycwhenxygrbczcyqxh").withValue("zzjkfgz")))
+ .withUlimits(Arrays.asList(
+ new Ulimit().withHardLimit(16).withName("zswtamsvbvaxlueyfkklzaz").withSoftLimit(2)))
+ .withUser("hosruyaojhjbh")
+ .withVolumesFrom(
+ Arrays.asList(new VolumeFrom().withReadOnly(true).withSourceContainer("ktlxxpz")))
+ .withWorkingDirectory("jpdgsckyvfez")))
+ .withCpu("hijyr")
+ .withEphemeralStorage(new EphemeralStorage().withSizeInGiB(17))
+ .withExecutionRoleArn("qqqfakequmccjxadppbeamxuwsitta")
+ .withFamily("atzptqetfqeczglfyn")
+ .withInferenceAccelerators(
+ Arrays.asList(new InferenceAccelerator().withDeviceName("mh").withDeviceType("zfkvyer")))
+ .withIpcMode("bynxyc")
+ .withMemory("vwthlhlwlmwyoxowrumsld")
+ .withNetworkMode("vrvk")
+ .withPidMode("pthtbdouatcrybmke")
+ .withPlacementConstraints(
+ Arrays.asList(new TaskDefinitionPlacementConstraint().withExpression("skxfvhirrtaegdaujr")
+ .withType("qnklizvyidxybjmtkgdzdls")))
+ .withProxyConfiguration(new ProxyConfiguration().withContainerName("tykmharv")
+ .withProxyConfigurationProperties(
+ Arrays.asList(new KeyValuePair().withName("edrmixvb").withValue("vdms")))
+ .withType("htnvhyjaffhosgiq"))
+ .withRequiresCompatibilities(Arrays.asList("lmugnbkpcgvmibqmoyeicudqghukxl"))
+ .withRuntimePlatform(new RuntimePlatform()
+ .withCpuArchitecture("zcetkrsfadbflliirh")
+ .withOperatingSystemFamily("topzpehesx"))
+ .withTags(
+ Arrays.asList(new TagAutoGenerated27().withKey("fakeTokenPlaceholder").withValue("glazi")))
+ .withTaskDefinitionArn("fpexhci")
+ .withTaskRoleArn("vvebkfiglrktpmn")
+ .withVolumes(Arrays.asList(new Volume().withConfiguredAtLaunch(true)
+ .withDockerVolumeConfiguration(new DockerVolumeConfiguration()
+ .withAutoprovision(true)
+ .withDriver("fdypjooligpeypyjkojhhnstigr")
+ .withScope("wourdwnfkwgitfhzywc"))
+ .withEfsVolumeConfiguration(new EfsVolumeConfiguration()
+ .withAuthorizationConfig(new AuthorizationConfig().withAccessPointId("ipf")
+ .withIam(AuthorizationConfigIam.DISABLED))
+ .withFilesystemId("kyluffayszoviyute")
+ .withRootDirectory("vqogypwzwvlqikbwdhvy")
+ .withTransitEncryption(EfsVolumeConfigurationTransitEncryption.DISABLED)
+ .withTransitEncryptionPort(27))
+ .withFSxWindowsFileServerVolumeConfiguration(new FSxWindowsFileServerVolumeConfiguration()
+ .withAuthorizationConfig(
+ new FSxAuthorizationConfig().withCredentialsParameter("fakeTokenPlaceholder")
+ .withDomain("igiaaxjfjdstgiwmurfycdsss"))
+ .withFileSystemId("gxcjekzhsm")
+ .withRootDirectory("bkbhxkwlfnslgnapevzhyvmfcdaup"))
+ .withHost(new HostVolumeProperties().withSourcePath("kgadnbxtebvbppaiqqkcmwcipqs"))
+ .withName("qslxsptvrywosrsnrdvo"))))
+ .withPublicCloudConnectorsResourceId("zrnabgyobuzozcbzvgu")
+ .withAwsAccountId("efgvyahxivjf")
+ .withArn("mkr")
+ .withPublicCloudResourceName("mmhr")
+ .withAwsSourceSchema("mvndrea")
+ .withAwsRegion("vdwjcoqcepgcfqjeedexacghbqhz")
+ .withAwsTags(mapOf("key1568", "fakeTokenPlaceholder")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### EcsTaskDefinitions_Delete
+
+```java
+/**
+ * Samples for EcsTaskDefinitions Delete.
+ */
+public final class EcsTaskDefinitionsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsTaskDefinitions_Delete.json
+ */
+ /**
+ * Sample code: EcsTaskDefinitions_Delete.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsTaskDefinitionsDelete(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsTaskDefinitions()
+ .delete("rgecsTaskDefinition",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsTaskDefinitions_GetByResourceGroup
+
+```java
+/**
+ * Samples for EcsTaskDefinitions GetByResourceGroup.
+ */
+public final class EcsTaskDefinitionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsTaskDefinitions_Get.json
+ */
+ /**
+ * Sample code: EcsTaskDefinitions_Get.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsTaskDefinitionsGet(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsTaskDefinitions()
+ .getByResourceGroupWithResponse("rgecsTaskDefinition",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsTaskDefinitions_List
+
+```java
+/**
+ * Samples for EcsTaskDefinitions List.
+ */
+public final class EcsTaskDefinitionsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsTaskDefinitions_ListBySubscription.json
+ */
+ /**
+ * Sample code: EcsTaskDefinitions_ListBySubscription.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecsTaskDefinitionsListBySubscription(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsTaskDefinitions().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsTaskDefinitions_ListByResourceGroup
+
+```java
+/**
+ * Samples for EcsTaskDefinitions ListByResourceGroup.
+ */
+public final class EcsTaskDefinitionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsTaskDefinitions_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: EcsTaskDefinitions_ListByResourceGroup.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void
+ ecsTaskDefinitionsListByResourceGroup(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ manager.ecsTaskDefinitions().listByResourceGroup("rgecsTaskDefinition", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EcsTaskDefinitions_Update
+
+```java
+import com.azure.resourcemanager.awsconnector.models.EcsTaskDefinition;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EcsTaskDefinitions Update.
+ */
+public final class EcsTaskDefinitionsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/awsconnector/resource-manager/Microsoft.AwsConnector/stable/2024-12-01/examples/
+ * EcsTaskDefinitions_Update.json
+ */
+ /**
+ * Sample code: EcsTaskDefinitions_Update.
+ *
+ * @param manager Entry point to AwsconnectorManager.
+ */
+ public static void ecsTaskDefinitionsUpdate(com.azure.resourcemanager.awsconnector.AwsconnectorManager manager) {
+ EcsTaskDefinition resource = manager.ecsTaskDefinitions()
+ .getByResourceGroupWithResponse("rgecsTaskDefinition",
+ "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key2531", "fakeTokenPlaceholder")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static