Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nithyatsu committed Jun 27, 2024
1 parent 7797f38 commit 0b85256
Show file tree
Hide file tree
Showing 12 changed files with 197 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"id": "/planes/aws/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "west-us-2",
"tags": {
"env": "dev"
},
"properties": {
"roleARN": "arn:aws:iam::000000000000:role/role-name",
"kind": "AccessKey",
"storage": {
"kind": "Internal"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"operationId": "AwsCredentials_CreateOrUpdate",
"title": "Create or update an AWS credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "aws",
"credentialName": "default",
"Credential": {
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleARN": "enterRoleARN",
"storage": {
"kind": "Internal"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleARN": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
},
"201": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleARN": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"operationId": "AwsCredentials_Delete",
"title": "Delete an AWS credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "awscloud",
"credentialName": "default"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"operationId": "AwsCredentials_Get",
"title": "Get an AWS credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "awscloud",
"credentialName": "default"
},
"responses": {
"200": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"operationId": "AwsCredentials_List",
"title": "List AWS credentials",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "awscloud"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"operationId": "AwsCredentials_Update",
"title": "Update an AWS credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "aws",
"credentialName": "default",
"Credential": {
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
},
"201": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "AccessKey",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
}
}
}

0 comments on commit 0b85256

Please sign in to comment.